v5.4 how to relocate/resize RTT texture in HTML5?

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Post Reply
W1NTER5
Posts: 3
Joined: Tue Aug 22, 2023 3:06 am

v5.4 how to relocate/resize RTT texture in HTML5?

Post by W1NTER5 »

Could anybody help clarify how to change the location and the size of RTT element in panel based on HTML5 please?
Can't find the proper way to do this. After the panel is loaded, the RTT element always stays at the original location with initial size. Changing the binding HTML element's attributes (such as width, height, etc.) never has any effects.

Is this a bug? Any solutions?

Thanks!
W1NTER5
Posts: 3
Joined: Tue Aug 22, 2023 3:06 am

Re: v5.4 how to relocate/resize RTT texture in HTML5?

Post by W1NTER5 »

Also we noticed that calling to VarGet consumes unacceptable long time. In our tests, only ~45 calls to VarGet can be completed within 1ms.
As a result, fps dropped to ~10 when the HTML5 panel is active.
Post Reply