Bernardo Reis (1096507) Posted November 21, 2020 Report Share Posted November 21, 2020 After reading the "know issues" section here: https://github.com/ronyan/VATCANSitu It made me think if it would be possible to add implement a function for better refresh rate when assigning HDGs on TopSky? Link to comment Share on other sites More sharing options...
Juha Holopainen Posted November 21, 2020 Report Share Posted November 21, 2020 Better - possibly. Smooth - probably not. I tested forcing screen updates at some point and didn't think the hugely increased CPU load was worth the smoothness. Try it out by dragging something on the screen for some time, it eats up all the resources. I'll probably revisit the issue at some point and try the effect of forcing a screen refresh at given intervals instead of continuously. Link to comment Share on other sites More sharing options...
Bernardo Reis (1096507) Posted April 13, 2021 Author Report Share Posted April 13, 2021 From Andrew Ogden on VATEUD #software Discord Channel: Quote thought I’d come back here and give an update I am using GetCursorPos and GetAsyncKeyPress to update a set of variables every 50ms in an infinite loop on a separate thread to provide me with info regarding button and position state, separate to ES. That way I can register left button or right button down on the screen without having to have a screen object. (button press not finished yet) Because it is in a separate thread the cursor refresh loop runs separately to the ES OnRefresh meaning I can update much, much faster than just once per second(edited) GetCursorPos could improve the smoothness of HDG line? 1 Link to comment Share on other sites More sharing options...
Juha Holopainen Posted April 14, 2021 Report Share Posted April 14, 2021 I have something similar in testing. The main difference is that I use the already existing mouse hook in the plugin to find out when the mouse cursor has moved and pass the information to a thread that then forces a screen refresh at a specified interval. Should be available in the next build. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now