FPS Drop over time

  • Cracker1000
    14th Sep 2013 Member 0 Permalink
    I also have a similar problem. At first when I start tpt++ or open any save as well as draw some elements ,the fps drops near about 17 to 18 and then it increases gradually to 50. Some checks are causing this or else it is intentional?
    OFF TOPIC-
    IS there any way to make sensors detect a decrease instead of increase in temp or pressure?
    And for what flags in prop.tool are used?
    Thanks in advance.
    Edited once by cracker1000. Last: 14th Sep 2013
  • china-richway2
    16th Sep 2013 Member 0 Permalink

    bump. Now Feedback froum has so many threads new every day and this thread dies without being fixed :D I don't think it should die until the bug fixes

     

    Where is the main frame loop? I meant to use OllyDbg for debugging but it can't tell me where is the current line running.

  • china-richway2
    17th Sep 2013 Member 0 Permalink

    Where is the main frame loop in source code?

  • jacob1
    17th Sep 2013 Developer 0 Permalink
    @china-richway2 (View Post)
    EngineProcess() is in PowderToySDL.cpp, and this is the main loop, but I don't think you will find anything source of lag with a debugger. If the devs haven't found it in the past year, I don't see how you will with much less understanding of the source.

    I don't even know what's causing it, but it seems like some strange problem with threads or memory leaks though.
  • china-richway2
    18th Sep 2013 Member 0 Permalink

    @jacob1 (View Post)

    Yeah, the point is that I can't find the OnTick thing. I found Engine->Tick. Window-> DoTick. OnTick (I don't know which source file has this OnTick thing) If I can find the GameView::OnTick() (or GameController::Update()) maybe it could be easier. eh

     

    I'm pretty sure that TPT don't have memory leak. It's still not my highest memory used. Always less than my IE.

    Edited once by china-richway2. Last: 18th Sep 2013
  • jacob1
    18th Sep 2013 Developer 0 Permalink
    Well, not everyone gets the bug, so you wouldn't see the memory leak if it is one (and someone said it isn't a small one, it can use up to a gigabyte of RAM)

    Also there is much more to the game than what happens in the OnTick things. I recommend you just stop looking unless you are experiencing what tmo97 has in the first post.
  • xetalim
    18th Sep 2013 Member 0 Permalink

    I will try out and see if i get low FPS after an hour.

  • china-richway2
    19th Sep 2013 Member 0 Permalink

    EDIT: I've only waited for 25 minutes

    Edited once by china-richway2. Last: 19th Sep 2013