DerKarlos / OSMeta

OSM "Metaverse"
Other
15 stars 2 forks source link

We need to actually flush the async File to ensure everything gets written. #48

Closed oli-obk closed 7 months ago

oli-obk commented 7 months ago

The Drop impl won't do it for us like the Drop impl of std::fs::File does

fixes #46

DerKarlos commented 7 months ago

No file errors any more. No glb - log outputs either, I added it again. But: (the cache is filled) After about a minute, anything gets slow, 3-4 ms/frame or / and stops loading tiles. I added log for cache write read, still testing ...

oli-obk commented 7 months ago

log outputs either, I added it again.

it's so spammy, which is why I removed it. Can we move it to debug instead? so it isn't shown by default, but can still be enabled?

oli-obk commented 7 months ago

After about a minute, anything gets slow, 3-4 ms/frame

maybe we're loading/unloading tiles at the sky boundary all the time?

DerKarlos commented 7 months ago

debug! is fine (It's a run option, isn't it? YES! THAT's IT: %RUST_LOG=debug cargo run) So we need more debug for un/loading :-) I try to do it ... NO, (with info!) I do see no despawn_recursive Do you have the same behaviour?

DerKarlos commented 7 months ago

With Web it's about the same: gets really slow. Tile loading seems to stop but takes just a minute. The trouble starts only if you move some way to cause new tile loads. (Don't hurry, I have other things to explore)

This is an interesting case. I! should be able to find the cause. By adding logs or by debugging....