Re: Pipmak using nearly %100 CPU?
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2009-10-10 08:40:00
|
James Wilson wrote: > I was discussing a tech demo I'd built with Pipmak for The Ages of > Ilathid, with another team member, and he reported this, which I found > to be true here also: > > >- And the biggest issue: the game steadily uses 100% of one of my CPU > cores, even >when I'm not doing anything. It doesn't take much CPU to > play an audio file and show a >static image on screen, so why is the > engine spinning in a loop and wasting so much >CPU? (Some other games do > this too, and it's very annoying) It shouldn't do that. It's supposed to render only as fast as your monitor can display it (60 Hz on a typical LCD), and that should take much less than 100% CPU on a moderately recent computer. However, I've seen several reports by now that this feature isn't effective for some people. Is this on Windows too? I'm not sure if there is anything I can do to properly fix this, but I need to add an additional hard frame rate limit for the case that the vertical retrace synchronization isn't working. (It happens here too when the window is completely obscured and actually annoys me as well.) Detecting when the image is completely static and not rendering at all during that time, however, is an optimization that has not been done so far, and given that in many games, there's always something that moves, it wouldn't save a lot anyway. -Christian |