faulks78 / genplus-gx

Automatically exported from code.google.com/p/genplus-gx
Other
0 stars 0 forks source link

Using SDL Semaphore for syncing makes program sluggish #343

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you run the program under Windows or Linux it is very sluggish. Even though 
it runs using very little CPU and at full speed, the UI gets jerky. Even on the 
Intel i7 and Intel Core Duo I tested it with.

This is because it is using a SDL Semaphore for throttling the speed the 
emulator runs at. All that signalling and context switching slows things down.

If you switch to just measuring the emulation loop time then sleeping, it 
solves these problems.

Attached is a patch that does this using gettimeofday() and usleep().

Original issue reported on code.google.com by matthew....@gmail.com on 11 Jun 2013 at 6:02

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks but, as I stated before, the SDL port is not meant for general use (i 
only use it for core debugging and quick testing), is neither optimized for 
anything or even maintained (beside updating it in regard to genplus-gx core to 
allow it to compile) 

So yes it's a jerky port (I personally think it has much more serious issue 
than sluggy UI, at least I don't notice this with my old Core 2 Duo) but I 
don't know why people keep insisting on using it ^^

Original comment by ekeeke31@gmail.com on 11 Jun 2013 at 6:22