NotCoffee418 / MultiTablePro

Advanced mass multi-tabling software
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

Render lag #47

Closed NotCoffee418 closed 5 years ago

NotCoffee418 commented 5 years ago

My Broken 970 bwin: has heavy delay on- (barely playable PokerStars: table movement delay of 100-200 is fine:

Mathias: OP beeldkaart (2080?) PokerStars: ?? Bwin: 50 should be more than enough based on video footage

Also plz test other beeldkaart if you get chance

NotCoffee418 commented 5 years ago

Notes: It seems to affect other windows in the same process as well. It seems to rely on cpu rather than gpu? - EDIT: Irrelevant, WM message queue locks are the reason for the lag.

Possibly relevant: https://docs.microsoft.com/en-us/windows/desktop/gdi/wm-setredraw Disables redraw - maybe able to prevent resize when moving to inactive (test this, it may act entirely different from what i expect.

https://docs.microsoft.com/en-us/windows/desktop/api/Winuser/nf-winuser-redrawwindow Combine with the above to force a redraw when approperiate

https://docs.microsoft.com/en-us/windows/desktop/winmsg/wm-windowposchanged if you can hook into that, might be useful.

https://docs.microsoft.com/en-us/windows/desktop/winmsg/wm-nccalcsize ??


More importantly: https://stackoverflow.com/questions/692742/how-do-you-programmatically-resize-and-move-windows-with-the-windows-api

NotCoffee418 commented 5 years ago

Drastic improvements on both platforms but I doubt there's a true permanent fix so, closing. Encourage users who have this issue intensely enough for it to bother them, to make all active/inactive slots the same size.

This only occurs when resizing windows, not when moving them, because that's when PS/Bwin has to repaint the whole frame.

There are alternative approaches, such as fake "copies" of real windows for inactive slots that cannot be interacted with similar to what partycaption can do.