Skip to content

Commit

Permalink
Fix issue with "stuttering" PositionLockCamera
Browse files Browse the repository at this point in the history
The camera focus was updated before the entity position which resulted in the camera lacking behind by a frame.
  • Loading branch information
steffen-wilke committed Apr 14, 2020
1 parent 8b2cc7a commit eb1ca1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de/gurkenlabs/litiengine/GameLoop.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ public void removeAction(int id) {
*/
@Override
protected void process() {
Game.world().camera().updateFocus();
if (this.getTimeScale() > 0) {
super.process();
this.executeTimedActions();
}

Game.world().camera().updateFocus();
if (!Game.isInNoGUIMode()) {
Game.window().getRenderComponent().render();
}
Expand Down

0 comments on commit eb1ca1e

Please sign in to comment.