Slow Window Drawing

We have a Mac/Win/Linux app where we show a dialog for a long-ish process. On Mac it appears fully formed, takes a brief amount of time in Windows and in Linux it can take many seconds (half the time the process is done and the dialog is closed never having been fully drawn.

Are there any tricks to getting windows to draw faster?

Is this window just a progress pacifier? If so, show the window first and use a timer on the Window to start the long-ish process after the window has shown.

Maybe cou could use a event after the window was open to start your process.
Use Addhandler to register this

There are a few methods, the easiest is to sleep the background thread for 50-200ms (depending on the complexity of the window) when you open the window which allows your ui to draw.

1 Like