Chringo / SSP

Large game project at the Blekinge Institute of Technology
Apache License 2.0
10 stars 0 forks source link

Camera frame dependancy #259

Open Pistonnoob opened 7 years ago

Pistonnoob commented 7 years ago

The camera moves faster the lower the framerate is.

AceMice commented 7 years ago

Cannot move the camera at all with 1k FPS.

Pistonnoob commented 7 years ago

The issue seems to be derived from resetting the mouse position to the middle of the screen every frame. When doing this I think it sets values such as 2.8 = 0 but we only read the 2 from the value. Meaning we lose part of the value at high framerates.

Pistonnoob commented 7 years ago

This issue was somewhat fixed along with the activation of V-sync as the framerate is locked much lower than when the issue becomes a visible disturbance.