aboutsummaryrefslogtreecommitdiff
path: root/src/GPU3D_Soft.cpp
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-07-21 10:19:56 +0200
committerStapleButter <thetotalworm@gmail.com>2017-07-21 10:19:56 +0200
commit0df3a293746fd5f2d5550150225904905a72000f (patch)
tree30b5d8148f3fc4918610698c51e93f6253963cef /src/GPU3D_Soft.cpp
parentcfb9e20fe1606fb63cc97e1c57df29bdbeb2825b (diff)
* FPS counter displays target framerate
* fix potential hang and out-of-bounds drawing when VCount is modified during drawing
Diffstat (limited to 'src/GPU3D_Soft.cpp')
-rw-r--r--src/GPU3D_Soft.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp
index 01653e9..cce5d70 100644
--- a/src/GPU3D_Soft.cpp
+++ b/src/GPU3D_Soft.cpp
@@ -1522,8 +1522,7 @@ void ScanlineFinalPass(s32 y)
if (RenderDispCnt & (1<<5))
{
// edge marking
-
- // TODO: is it applied to bottom pixels?
+ // only applied to topmost pixels
for (int x = 0; x < 256; x++)
{
@@ -1842,7 +1841,10 @@ void RenderThreadFunc()
void RequestLine(int line)
{
if (RenderThreadRunning)
- Platform::Semaphore_Wait(Sema_ScanlineCount);
+ {
+ if (line < 192)
+ Platform::Semaphore_Wait(Sema_ScanlineCount);
+ }
}
u32* GetLine(int line)