Hi, i've been working on the 3d main menu for my game. I have been using "Decoupling the game loop from the display loop" at
http://forum.thegamecreators.com/?m=forum_view&t=175348&b=6.
With this neat code, I can essentially set the sync rate seperate from the rest of the game so the actual game doesen't always run at different speeds on differently powerful computers. I have the "game loop" set to run at 120-125 Hz, and I have been playing with the display loop, which basically just contains "sync"(although there is a lot existing in the 3d world), while the game loop currently just has a few simple math commands(to keep the 3d stuff moving at the right pace).
When I set the display loop to ~60 hz everything runs fine, and I get about 10% cpu use.
When I set the display loop to 75 or 90 hz, same thing
However, I tried setting the display loop to 120-125 hz, and essentailly everything dropped to 105 hz, with no extra loops(meaning the "lps" variable in the code linked above). I thought I was running my computer to the max, but I still had only 10% cpu use. I played around with dark basic for a while, I had the thought that maybe the GPU was slowing everything else down.
Then I tried forcing antialiasing through the Nvidia control panel, which would decrease performance, and it did. In my game's 3d main menu with both the display and game loops set to ~120 hz, instead of dropping to 105hz like before, it now dropped to ~60 hz, although cpu use was still around 10%.
So, is there a way to make the program use the cpu and gpu at the same time? If I could do that, I could get 120-125 hz in the game loop regardless of computer, and only the frame rate would vary(I think). Or, perhaps use the cpu as a gpu to help the main gpu, instead of just letting the cpu sit idle?
If you need me to post my code, ok, but it will be hard to figure out...
I like Wings 3D and GIMP. YAY.