I'm currently working on an application using processing. I have built a custom UI but it has just one major flaw.
As there can be a lot of graphics on screen at any one time, it doesn't make much sense to continuously redraw the complete screen for every frame when the mouse is pressed on the resize button for a form panel.
My next step was to take a snap shot of any graphic heavy sections of the screen on every mouseReleased event and then display these instead while resizing a panel. This causes further issues as it may take up to a second to process the screenshot and can cause lags in other areas of the application.
Anybody have any experience in doing something like this or can think of any elegant solutions?