Rajawali / Rajawali

Android OpenGL ES 2.0/3.0 Engine
https://rajawali.github.io/Rajawali/
Other
2.32k stars 700 forks source link

Objects starts to render with delay when camera if far from them #2432

Closed kroart closed 2 years ago

kroart commented 2 years ago

Rajawali Version or Branch

1.2.1970

Device and Android Version

Pixel 4a Android 12

Summary

I'm creating constantly objects (simple cylinder) in a scene and when a camera is not far from them - everything is ok. But when I'm trying to move a camera farther then newly created objects start to render with some delay. The farther the distance the more delay is.

Check these videos: Far distance: https://youtu.be/qeYQ_mxnvU8 Close distance: https://youtu.be/VeatmUzZEdE I'm just changing the scale of these cylinders and creating new ones there.

What is causing this delay and how to avoid it?

kroart commented 2 years ago

Silly mistake on my side. During scaling objects, their scale at the beginning was quite low and it seems it "rounded" to 0 somewhere. Increasing starting scale solved the problem.