Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Objects run faster near top of the window  (Read 1041 times)

0 Members and 1 Guest are viewing this topic.

ShaiMenz

  • Newbie
  • *
  • Posts: 1
    • View Profile
Objects run faster near top of the window
« on: August 31, 2017, 03:08:19 pm »
Hello,
I just started using SFML and have been doing some simple games. I have encountered a weird phenomenon where objects run faster near the top of the screen.
I believe it happens because calculations near the top of the screen are faster (smaller numbers). I tried capping the framerate but it doesnt seem to work...

Tanks, Shai.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11028
    • View Profile
    • development blog
    • Email
Re: Objects run faster near top of the window
« Reply #1 on: August 31, 2017, 09:40:33 pm »
No, that doesn't make sense. Calculations are equally fast as they use the same type (int32, float, etc).

How do you notice that it's faster?
How do you measure that it is faster?

What are your calculations?
Can you provide any code?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything