Is it possible to have ZSNES able to wait for VSYNC without using 100% CPU usage?
I read something on codeproject that said that the WaitForVerticalBlank directx call is basically a spinlock idle loop, and for better performance, use a 2ms multimedia timer along with GetScanLine to wait for vblank.
Why would it matter? 100% CPU usage == hot laptop.
Feature request: Vsync without 100% CPU usage (Windows)
Moderator: ZSNES Mods
Feature request: Vsync without 100% CPU usage (Windows)
"We are merely sprites that dance at the beck and call of our button pressing overlord."
-
- Seen it all
- Posts: 2302
- Joined: Mon Jan 03, 2005 5:04 pm
- Location: Germany
- Contact:
It's not really the speed of the emulator, but what it does with the remaining time not used for emulation.
For example, "1964" uses about half the CPU time on my laptop, so the fan stays at its speed. With "Project64" the CPU load is always 100%, so the fan goes wild.
I've noticed that SNES9x doesn't use all of its time, too.
For example, "1964" uses about half the CPU time on my laptop, so the fan stays at its speed. With "Project64" the CPU load is always 100%, so the fan goes wild.
I've noticed that SNES9x doesn't use all of its time, too.
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
bsnes launcher with recent files list