Hooray wrote in Fri Oct 15, 2021 10:10 pm:there's no good reason for the FPS to drop significantly, it it does, I'd say that's a clear bug in the underlying MapStructure controller files - the point being, what is being rendered are really just simple raster graphics that are placed using lat/lon tuples - thus, the original implementation was fairly simple if I remember correctly. If it's now causing fgfs to stutter, I'd first of all suggest to review the searchCmd() method of the corresponding WXR.lcontroller file.
It will have the equivalent of a foreach loop traversing a bunch of data structures/properties to determine what is to be rendered. If the model lacks a proper equals() helper, it will redraw stuff unnecessarily.
Either way, there is no good technical reason for any of this to be slow or to cause "stuttering" - other than it using a naive algorithm, because the original prototyping code never got updated (?)
It would be awesome to look into this, I guess it will help with any aircraft then using this. It's probably way past my knowledge at this point but heck once I've finished my little updates for the 757F I'm definitely going to challenge myself and take a look... and probably fail at least I may learn something.