Advertisement

CPU 100% used....

Started by February 07, 2005 01:46 PM
5 comments, last by dawidjoubert 20 years ago
I got a little problem!! When i try the program lesson5.exe (from Lesson 5 of NeHe), i have 0% CPU usage. But when my friend tries to start it on his PC, he got 100% usage! What am i able to do=? Someone got an idea=? Thx HolyHead
It's nothing weird unless it's really blocking his system. His system + driver probably have bad traffic issues.
Advertisement
Unless you have vsync or some frame rate limitation it's perfectly normal to be running at 100%.

i have heard something about making cpu to wait other calculations. the solution was using a wait method in render function.
+-+-+-+-+-STR
Quote:
Original post by stroma
using a wait method in render function.

If I am not wrong for GL this is Finish.

Previously "Krohm"

okay, thx guys, nothing to worry about at the moment!!
Advertisement
call glFinish() just after glSwapBuffer()

alterantly you can do the following

if (LASTFPS > 100) wiattime++;
renderall()
sleep(waitTime);
----------------------------

http://djoubert.co.uk

This topic is closed to new replies.

Advertisement