Updated: April 19, 2023 |
We recommend that you use a single, static window buffer (SCREEN_PROPERTY_STATIC) whenever possible, and that you try to load the image directly into the window buffer.
When your application tries to show content from multiple, visible windows, Screen likely needs to create a framebuffer. When Screen creates a framebuffer, additional drivers may need to start as well, which can increase the time required to show content on the display. For this reason, to get content shown quickly, we recommend that you minimize the number of visible windows you use in your application.
Since the contents of the window buffer shouldn't change, set the window's property type to SCREEN_PROPERTY_STATIC.
If you use clipped regions in the source rectangle of the window buffer, ensure that the source rectangle (or source view port) is contained within the clipped region. Your clip region should be at least the same size (or larger) so that the source rectangle can be contained within it. So avoid what's shown in the following illustration from occurring: