TinyGL examples makes the cpu be busy at 100%.
  • Order of the Butterfly
    Order of the Butterfly
    BalrogSoft
    Posts: 171 from 2006/10/6
    From: Spain
    I'm developing a game for iPhone and MorphOS, i started the project on OSX, but my macbook was broken, and i must send it to repair, the perfect moment to porting it to MorphOS. I have my small OpenGL 2d engine working on MorphOS, but cpu is busy at 100%.

    I have tested some examples of TinyGL SDK, and it causes same behaviour. Gears2 and Gears3 examples makes the cpu to be busy, so it's not my code.

    My system is a Mac Mini G4 at 1.5ghz, MorphOS 2.7, and gcc 4.4.4, someone have similar issues?
    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
  • »26.01.11 - 02:16
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    I guess these examples are designed to run as fast as possible, so they have no upper framerate limit. Then it is obvious they fully load the CPU. Limit fps to 50 for example.
  • »26.01.11 - 05:45
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    BalrogSoft
    Posts: 171 from 2006/10/6
    From: Spain
    Yes, it should be this, but i was confused because removing some pieces of my code the cpu isn't at 100%, and it was only a class constructor call that only sets a variable. I just added Wait(1) function, but now it says that Wait was not declared on this scope, and the dos.h file was included.
    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
  • »26.01.11 - 20:09
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    BTW
    Where did you find the examples?
    GL includes are included by the new sdk,
    but i did not find any examples?!
    regards
    eliot
  • »26.01.11 - 20:42
    Profile
  • MorphOS Developer
    Piru
    Posts: 576 from 2003/2/24
    From: finland, the l...
    Quote:

    I just added Wait(1) function, but now it says that Wait was not declared on this scope, and the dos.h file was included.

    Wait() is used to wait signals. It's an exec call.

    You probably meant Delay()?
  • »26.01.11 - 20:52
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    BalrogSoft
    Posts: 171 from 2006/10/6
    From: Spain
    Sorry, it was a mistake. Delay is the function.

    I don't remember where i found TinyGL SDK, but i can't find the original archive.
    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
  • »26.01.11 - 20:58
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    Should be available on mdc,
    but mdc seems to be down,
    regards
    eliot
  • »26.01.11 - 21:10
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12080 from 2003/5/22
    From: Germany
    > I don't remember where i found TinyGL SDK, but i can't
    > find the original archive.

    https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=7208&forum=49&post_id=74472#74472
  • »26.01.11 - 23:41
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    Quote:


    Andreas_Wolf wrote:
    > I don't remember where i found TinyGL SDK, but i can't
    > find the original archive.

    https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=7208&forum=49&post_id=74472#74472


    THX!
    regards
    eliot
  • »27.01.11 - 12:35
    Profile