Octal450 / MD-11

A high-quality McDonnell Douglas MD-11 simulation for the open source simulator, FlightGear
https://wiki.flightgear.org/McDonnell_Douglas_MD-11
GNU General Public License v2.0
46 stars 12 forks source link

Bug - External model performance #46

Open BobDotCom opened 2 weeks ago

BobDotCom commented 2 weeks ago

Describe the bug The sim freezes for a few seconds when switching to external view for the first time. After the first time, switching to external view is just fine.

This also happens when switching liveries (though not on interior views). Because of this, it leads me to suspect an issue with the livery being applied to objects.

I remember something like this on the 787, and the fix was to parent all of the objects that share a livery. Could be related? See here: IskenderWang/787-family#89 (and the corresponding issue, IskenderWang/787-family#88)

To reproduce Steps to reproduce the behavior:

  1. Launch the sim
  2. Go to external view

Expected behavior Little to no delay.

Screenshots If applicable, add screenshots to help explain your problem.

System (please complete the following information):

Additional context My hardware is pretty high spec, it shouldn't have any issues with this.

Octal450 commented 2 weeks ago

Known problem. Should be fixed by the new 3D.

But I'll look into the livery thing.

Kind Regards, Josh

Octal450 commented 2 weeks ago

@L1011H

Octal450 commented 2 weeks ago

By the way I'm not familiar with any FG plane that doesn't stop for a second when loading the exterior 3D.

It's worse in the MD-11 due to how heavy the 3D model is. Which the new 3D will fix.

Does parenting the livery stuff really help? Cause I don't think it's the issue.

I may try commenting out the livery code and seeing what happens.

Kind Regards, Josh

BobDotCom commented 2 weeks ago

Does parenting the livery stuff really help? Cause I don't think it's the issue.

In my experience, the lag almost completely disappeared on the 787 when this change was made. It was night and day. So (at least for the 787) it definitely can help a lot. Not sure if that's the issue here, but it could be.

Octal450 commented 2 weeks ago

Well I just deleted all the livery code from the model XML and the exterior load time was exactly the same.

2024.1.1. I do seem to recall this stuff was improved post 2020.3.

about 1-2 seconds delay.

i7-8700k + GTX1070.

Kind Regards, Josh