11-12-2007, 01:39 AM
It was already declared, but used nowhere in the code.
I raised the FPS lock by 2 (to 35) and it dropped CPU usage by 10% on average.
Added a sleep 1 as you said, and brought the FPS lock back to 33, and now it only used 3% CPU.
=]
Only reason I noticed the issue was because I kept freezing changing maps, like I would change maps, and I couldn't move anymore, and when that happened, my CPU would be at 100%.
NPcs and Mobs were skipping too.
EDIT: Sigh.. I still get stuck walking through maps randomly, like a 13% chance that when switching maps, I'm unable to move.
I raised the FPS lock by 2 (to 35) and it dropped CPU usage by 10% on average.
Added a sleep 1 as you said, and brought the FPS lock back to 33, and now it only used 3% CPU.
=]
Only reason I noticed the issue was because I kept freezing changing maps, like I would change maps, and I couldn't move anymore, and when that happened, my CPU would be at 100%.
NPcs and Mobs were skipping too.
EDIT: Sigh.. I still get stuck walking through maps randomly, like a 13% chance that when switching maps, I'm unable to move.