Best practice for redraw a dragged window
Stefan Fröhling (7826) 167 posts |
We have implemeted now support in !CLFiler a viewer to display images. What is the best practise here? |
Rick Murray (539) 13850 posts |
Hehe, your executable is half the size of the OS it’s running on. ;)
Memory is (nearly) infinite, user patience isn’t. I’d definitely go with converting it to a sprite and then showing that. If it’s a viewer, you’ll only need to be caching the image data for the duration that it is open and on-screen, right? |
Jon Abbott (1421) 2651 posts |
Rendering to a Sprite would be the sensible option if you want fast redraws, but as you say it will use lots of memory. Perhaps compromise and only temporarily render to Sprite when the drag action starts and release it once the mouse buttons are released. |
Stefan Fröhling (7826) 167 posts |
Ok thanks for the feedbacks. |