DIV3 excesive CPU wasted

jepalza - 25-3-2016 at 05:03 PM

Using "old" DIV2 into DOSBOX vs. new DIV3, CPU use is excesive. Look my pictures: 0% vs. 16% in same conditions. CPU FAN of my DELL Laptop goes to max. power/speed. :(

div_dosbox.jpg - 139kBdiv_new.jpg - 124kB

MikeDX - 25-3-2016 at 06:07 PM

This is due to div running a continual loop in the IDE abd painting the entire desktop every frame update.

Will be fixed in a future version

Also the compare isnt that fair since div dos runs a lot slower

MikeDX - 11-4-2016 at 01:07 AM

I have now fixed this for the games, reducing the cpu usage by a significant ammount. Next I'll be doing the same thing for the IDE and have it all play nicely and release cpu ticks where it can.

Instead of a loop to wait until the next frame tick, we now yield for the delay and wake up just before the next frame.