[gameprogrammer] Re: random speed up
- From: "Alan Wolfe" <alan.wolfe@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Thu, 14 Feb 2008 23:33:05 -0800
Wow you hit the nail on the head, that does indeed happen - each time
i go to the main menu then back into the game it goes faster and
faster.
It's strange because i'm not messing with the CPU priority or
anything...as far as i can tell the only thing that is happening
(apart from what say...fmod might be doing) is just loading and
unloading some textures, and allocating/deallocating some memory.
Do you think fmod could be causing this? Having never hit this
problem before, how do you release the cpu back to the os, just set
the priority to a lesser value?
Thanks a lot for your help!
On Thu, Feb 14, 2008 at 9:26 PM, Harrington, Timothy
<tharrington@xxxxxxxxx> wrote:
> Alan, what happens if you go in and out of the game to the main menu and
> back repeatedly? Does the game acquire more and more cpu priority? If
> so, sounds like you need code which will release cpu back to the OS and
> then request again when the game is reinitialized.
>
> Tim Harrington
> Game and Simulation Programming
> Instructor
> Student Game Development Association
> Advisor
> 602-870-9222 x847
>
>
> -----Original Message-----
> From: gameprogrammer-bounce@xxxxxxxxxxxxx
> [mailto:gameprogrammer-bounce@xxxxxxxxxxxxx] On Behalf Of Alan Wolfe
> Sent: Thursday, February 14, 2008 9:58 PM
> To: gameprogrammer@xxxxxxxxxxxxx
> Subject: [gameprogrammer] random speed up
>
> It's not very often you get to complain about your game running too
> fast but here it goes...
>
> I'm making a pretty simple game using fmod for sound and directx for
> everything else.
>
> I have a wierd issue where if you enter the game and then go back to
> the main menu, if you enter it again the game appears to have more CPU
> priority or something and runs probably twice as fast.
>
> The game is really simple and doesnt use any frame limiting code, and
> its single threaded (except for whatever fmod may be doing).
>
> Has anyone ever hit a problem like this before or know what it could be?
>
> Is it something like the main game is hammering on the cpu (there are
> a lot of particles) and then going back to the main menu there's
> nothing and it somehow decides to give the game more CPU priority or
> something?
>
> It's a wierd problem i've never seen before myself so am pretty
> confused... :P
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>
>
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- Follow-Ups:
- [gameprogrammer] Re: random speed up
- From: richard sabbarton
- [gameprogrammer] Re: random speed up
- From: Robbert de Groot
- References:
- [gameprogrammer] random speed up
- From: Alan Wolfe
- [gameprogrammer] Re: random speed up
- From: Harrington, Timothy
Other related posts:
- » [gameprogrammer] random speed up
- » [gameprogrammer] Re: random speed up
- » [gameprogrammer] Re: random speed up
- » [gameprogrammer] Re: random speed up
- » [gameprogrammer] Re: random speed up
- » [gameprogrammer] Re: random speed up
- » [gameprogrammer] Re: random speed up
- [gameprogrammer] Re: random speed up
- From: richard sabbarton
- [gameprogrammer] Re: random speed up
- From: Robbert de Groot
- [gameprogrammer] random speed up
- From: Alan Wolfe
- [gameprogrammer] Re: random speed up
- From: Harrington, Timothy