DerKarlos / OSMeta

OSM "Metaverse"
Other
15 stars 2 forks source link

loading large scenes lags the game #7

Open oli-obk opened 1 year ago

oli-obk commented 1 year ago

each of our ca 800m x 800m tiles takes longer than a frame to load.

We need to debug what the bottleneck here is. Likely it's the upload from RAM to the GPU

DerKarlos commented 1 year ago
oli-obk commented 1 year ago
  • Ask Bevy glb loader to build in a "slow mode": postpone further node loading to the next frame if the FPS is below parameter.

The glb loader could also be changed to do the splitting of scenes. I'll investigate if this can be done without having to edit the bevy crate. If not, we'll fork it and work on a fork for now so we can iterate and test quicker

DerKarlos commented 1 year ago

Small scenes: less lag but more draw calls = less FPS

An escape could be LoD: Near tiles are small and detailed, far giles are 4/16 times in arrea with less details. Very far only 2D bitmaps. (also having terrain in mind)

DerKarlos commented 1 year ago

The Linux application sometimes is so busy loading tiles, not only the control is disabled, also the application menu including closing the app. And other task on the notebook (Mac Air) get ugly slow.