• Order of the Butterfly
    Order of the Butterfly
    BalrogSoft
    Posts: 171 from 2006/10/6
    From: Spain
    Hi.

    I have tested different ways to have a smooth game loop with TinyGL. I have tested glTimerFunc and glIdleFunc. glTimerFunc gives a low cpu use, but i can't get a smooth game loop. With glIdleFunc works at full cpu use, but even in this case it have small jumps. I tried to added some code to put the task at idle state, using delay function doesn't gives an accurate game loop, it's minimal value is 1/50 seconds, i have used also sleep function but it didn't appear to do nothing. Any idea to make a smooth game loop?

    [ Edited by BalrogSoft on 2011/2/3 21:12 ]
    Balrog Software - AmigaSkool.net
    Mac Mini - MorphOS 3.8 - G4 1.5Ghz - Ati 9200 64 Mb
    Efika - MorphOS 3.6 - Ati 9200 64Mb - 80 Gb HD
    Amiga 1200D - OS 3.9 - Blizzard 603e/240mh
  • »03.02.11 - 20:12
    Profile Visit Website