leezer3 / OpenBVE

OpenBVE- A free train simulator
http://www.openbve-project.net
281 stars 51 forks source link

Extremely long loading times of x/obj models #1051

Open hotdamndel opened 3 months ago

hotdamndel commented 3 months ago

I tried using obj models since available exporters run better optimization for these, but the problem is how the loading times become exorbitant in both Openbve and ObjectViewer while anything else loads them just fine (up to 10 minutes). I enable Load in advance (or the same lag will happen when switching cameras instead of loading screen) and this happens on both New and Assimp parsers (same effect with both x and obj)

Sample train: https://drive.google.com/file/d/1CDL09_MMBAvrDdr8dbKszefPRI-BSJZP/view?usp=drive_link

leezer3 commented 3 months ago

That's quite a large model. I'm not entirely surprised things aren't particularly happy.... It shouldn't be taking anything like that long though. I make it well under ~30s on this machine

Decreasing the texture sizes will help considerably here; You're loading over 80mb worth of PNG files for just one model.

No easy fixes at the minute I'm afraid.