Closed kephale closed 6 years ago
I shall investigate. The amount of time taken results from the font generation, which only happens once though. They should be cached on-disk nevertheless...
I have a suspicion actually. I think its shader loading time.
It's definitely the font rendering. It takes some time to generate the distance fields via OpenCL. I'll cache them to disk soon so they're not recalculated with each new start.
Just tried to reproduce the issue with pure scenery and couldn't. The bounding grid adapts to scaling as well. Do you have the model file somewhere and could load it with ReadModelExample and see if the same odd behaviour occurs?
This happens with model: https://github.com/scenerygraphics/SciView/blob/master/src/main/resources/WieseRobert_simplified_Cip1.stl
To test in SciView, just add a BoundingGrid in: https://github.com/scenerygraphics/SciView/blob/master/src/main/java/sc/iview/commands/demo/MeshDemo.java
Thanks, will try to reproduce!
If fitInto was called on the Node, then you get a result like this:
Also generating the BoundingGrid takes a surprisingly long time (multiple seconds) and completely blocks the thread.