I have a Flash game I made way back in 2008. It runs super fast these days. Way too fast in fact. I have it set to 60fps in FlashDevelop, but I think that is just limiting the amount of draw calls. I think my logic is executing well past 60 times a second these days. I haven't done ActionScript in a while, but I noticed that I am using an enterFrameHandler that executes my logic loop. It seems to have no constraint set on it. It just fires away as it is called I believe. Is there any way I can cap it at 30 or 60fps? I would greatly appreciate any help or ideas. My game is ruined if the logic runs too fast :(
UPDATE As some ActionScript knowledge is coming back to me I just thought of something. Isn't the enterFrameHandler bound by what the fps is set to in Flash or FlashDevelop under project properties? Can anybody confirm this? It would mean my draw calls and logic calls are 1:1 right?