plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

lyonhaart001 avatar image
lyonhaart001 asked lyonhaart001 answered

Does XML gauges 'without' graphics effect frame rates in MSFS?

Hello Team Asobo and the great Flying Raccoon,

Quick question. Do XML gauges that have 'no' graphics in them effect frame rates in MSFS?

We know that XML gauges (instrument gauges with graphics) severely hindered frame rates performance. I am just curious about 'gauges only' which would be for things like effecting condtions.

Many thanks,

Bill of the gray eyebrow people.
LHC

gauges
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

FlyingRaccoon avatar image
FlyingRaccoon answered

Hello @lyonhaart001

You know how to talk to me :)

As Alex said, it really depends on what your gauge actually does.
And Wookie is right as well, internally we use almost exclusively Behaviour + HTML/JS gauge so the Behaviour evaluation is better maintained than the legacy xml gauge flow.

And finally, WASM is a good and efficient alternative. Not used a lot on our own planes as our team is used to the HTML/JS flow but the engine team is maintaining and improving the WASM flow on a regular basis.

Regards,
Flying Raccoon, the Great !

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

OzWookiee avatar image
OzWookiee answered

I think most of those guages should be moved into the model XML's using the Update template.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

SWS-AlexVletsas avatar image
SWS-AlexVletsas answered

Bill, from our own experience, the performance impact of XML gauges depends on the complexity of the gauge. For the Kodiak, the Air Conditioning doesn't have a great effect in performance. The ESI500 on the other hand is hitting hard, often 10fps or more. On PC XML gauges are run with GDI+ and that puts them on the CPU.

I believe the problem is the sheer number of animated and transparent elements. Bert Pieke removed the menu functionality which has a ton of these and the FPS hit was significantly reduced.

With NanoVG as the renderer there is no performance problem. XML is rendered using NanoVG on the GPU and apart from some quirks that Asobo can fix (displaced graphics and offset text), it works great. NanoVG is coming to PC from what I remember, so XML gauges will probably be a viable , albeit inflexible option in the future.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

lyonhaart001 avatar image
lyonhaart001 answered

Many thanks, @FlyingRaccoon. Very much appreciated.

Thanks also, BeeJay and Alex.


Bill
LHC

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.