Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light blinking #15

Closed
B00sT opened this issue Jul 28, 2014 · 1 comment
Closed

Light blinking #15

B00sT opened this issue Jul 28, 2014 · 1 comment
Labels

Comments

@B00sT
Copy link

B00sT commented Jul 28, 2014

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
Copy link
Contributor

rinold commented Jul 29, 2014

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)

@rinold rinold added the question label Aug 2, 2014
@rinold rinold closed this as completed Feb 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants