Weird FPS problem.

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi

    I have set the FPS to 60 and i'm using a 'RTS like' scrolling. Meaning if the mouse is on the right border of the frame, the frame goes to right, if it's left, the frame goes left, etc.

    Sometimes when i scroll it's really laggy. I started deleting things to cancel out possible causes for the lag but that didn't help. Even happens when i just use a blank frame with only a quick backdrop.

    Now, i found out that if i set the FPS to 100 the lag never happens. But i read somewhere that setting the FPS to 100 is bad.

    What FPS value do you use? What are the arguments against FPS 100?


    Also is there a more ressource friendly alternative for 360 aiming than this:

    Set Scale: Sqr(((XMouse-X( "Line" )) pow 2.0)+((YMouse-Y( "Line" )) pow 2.0))
    Set Angle: ATan2(Y( "Line" )-YMouse, XMouse-X( "Line" ))

    ?

  • No such theory supported in my camp. Running at 100fps won't directly affect any individual item, perhaps timer-based movement. I use 100fps for most applications (not games) to ensure certain things catch up with the loop it will help with allowing objects to catch up, machine independence-checked will also allow for some frames to be skipped enabling a catch up.

    If your scroll isn't smooth it must be something in the code, I have used this technique a few times and it hasn't posed an issue. Could you maybe post your MFA?

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • Thanks for the reply.
    Not much point in posting the MFA since i already removed all items and all code (except the scrolling bit of course and a quick backdrop).

    Scrolling code looks like this:

    YMouse <= Y Top Frame+16
    Center display at Y=Y Top Frame+((Y Bottom Frame-Y Top Frame)/2)-4

    Same for Bottom Frame and X for right and left frame... you get the idea.

  • Yeah, straight forward enough... I'll give it a go at my end, alternatively to speed up your development, you may want to add an extra layer with 4 border actives and just detect a mouse-over if that lags too then I'm confuzzled!

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • I appreciate it!

    Nice idea, i'll try it out.

    It's just really weird that it lags at 60 and not at 100 FPS.... even though it's constantly at 60 and not dropping.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!