libgdx / box2dlights

Fork of box2dlights by Kalle Hamalainen
Apache License 2.0
255 stars 82 forks source link

Light blinking #15

Closed B00sT closed 9 years ago

B00sT commented 10 years ago

Hello, I have some problem. While camera is moving, the lights are blinking. The problem can be solved by increasing FBO size, but this way reduces FPS so much. You can see problem in this video: https://2ch.hk/gd/src/1406381150994.webm How can i fix it?

rinold commented 10 years ago

I'm not sure if it would help, but:

  1. You can make lights that don't change or change rarely as static
  2. Try to use fixed step for physics update - you can find such example in box2dlights demo application (see the box2dlights\test\tests\Box2dLightTest.java - #fixedStep(float delta) and #render() methods)