[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

OpenGL repaint loop



Hej

Jeg skal til at lære noget OpenGL programmering og er lidt i tvivl om, hvor tit og hvordan jeg skal gentegne.
Når man sætter FPS på spillene så kan man se at scenen bliver tegnet så og så mange gange i sekundet selvom der ikke sker noget nyt på skærmen så jeg regner lidt med, at der er en tråd, som bare tegner scenen om så tit som muligt. Men hvordan skal dette gøres ?
Noget i denne stil ?:


bool running = true;
....
while (running) {
   drawScene();
}

Vil det ikke sætte processoren i 100% arbejde ?
Eller er timere en bedre løsning ?

VH
Robert


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-09-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *