View Single Post
Old 23 June 2016, 20:51   #6
Toni Wilen
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 43
Posts: 20,636
I have an idea for different way to do CPU Idle. Switch internally to "approximate speed" mode than CPU is "idle enough". This won't break timing and results in very small CPU usage, especially if mode is RTG.

I did quick tests and it seems to work but of course I can't test all possible cases.. Current method is very simple: count number of scanlines CPU is in stopped state (exec executes STOP when there is nothing to do) and if number of scanlines in stopped state is large enough during last 1 second, switch to approximate mode. Any time number of stop state scanlines goes down, immediately switch back to normal mode.

Test version coming soon...
Toni Wilen is offline  
Page generated in 0.04836 seconds with 9 queries