User Tag List

Results 1 to 5 of 5

Thread: Weird FPS problem.

  1. #1
    No Products Registered

    Join Date
    Feb 2012
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Weird FPS problem.

    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" ))

    ?

  2. #2
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    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?
    Want to learn Clickteam Fusion 2.5?




  3. #3
    No Products Registered

    Join Date
    Feb 2012
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    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!
    Want to learn Clickteam Fusion 2.5?




  5. #5
    No Products Registered

    Join Date
    Feb 2012
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

Similar Threads

  1. Weird problem with music
    By Vilde in forum File Archive
    Replies: 4
    Last Post: 21st February 2010, 05:34 AM
  2. Weird problem with my project!
    By NeoMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 17th February 2010, 08:03 PM
  3. Weird problem with my project!
    By NeoMonkey in forum File Archive
    Replies: 2
    Last Post: 16th February 2010, 03:53 PM
  4. Weird problem with MMF2
    By Alpha in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 15th May 2009, 05:39 PM
  5. Weird problem! Please Help!
    By csj1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st July 2008, 02:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •