Community
Message Board

Chat room - users
Game Over
( 394431 downloads)
Work In Progress
( 523201 downloads)
Links

Code Exchange
Downloads
Tutorials
Add to Favourites

Submit news

DIV ARENA FORUMS
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: DIV3 excesive CPU wasted
jepalza
Loyalty Card Holder
******




Posts: 11
Registered: 24-3-2016
Location: Spain
Member Is Offline


[*] posted on 25-3-2016 at 05:03 PM
DIV3 excesive CPU wasted


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
View user's profile Visit user's homepage View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 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
View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 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.
View user's profile View All Posts By User

  Go To Top

Powered by XMB
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 18]