vpinball / b2s-backglass

B2S Backglass Server for use with Visual Pinball
Other
48 stars 7 forks source link

Create UI Thread for B2S #112

Closed stevejones72 closed 4 months ago

stevejones72 commented 4 months ago

Create a UI thread and run the backglass form from it. In .DLL mode, this should help detach the processing of the form, from the VPX scripting thread that has requested updates, which is similar to how the .EXE mode runs and allows it to be much smoother.

This was particularly noticeable when I created the B2SSetPos function that is repeatedly called within a table script, this caused spikes in the scripting engine during processing. This should now be smooth.

All other backglasses should see a performance improvement in .DLL mode with this change.

JockeJarre commented 4 months ago

I have merged this into the separate branch instead of main