A method for generation of display contents by a display subsystem comprising a number K of available hardware layers and a compositor , wherein the compositor is implemented as a hardware unit or a hardware block as part of the display subsystem , and wherein the compositor performs its operations without involving a central processing unit or a graphical processing unit, the method comprising: selecting multiple application window surfaces stored in a memory , wherein a number of the application window surfaces stored in the memory exceeds a number K of available hardware layers of the display subsystem , and wherein the number of selected application window surfaces is equal to the number K of the available hardware layers ; feeding data in each of the K selected multiple application window surfaces to a respective available hardware layer among the K available hardware layers ; compositing an intermediate frame by the compositor of the display subsystem based on the contents of the fed hardware layers ; determining if a number of remaining non-selected application window surfaces in the memory is greater than K-1; selecting K - 1 previously non-selected application window surface stored in the memory , if the number of remaining non-selected application window surfaces is equal or greater than K - 1, or selecting all remaining application window surfaces , if the number of remaining non-selected application window surfaces is smaller than K - 1; feeding the intermediate frame and data in each of the selected previously non-selected application window surface to respective available hardware layers among the K available hardware layers ; compositing a subsequent frame by the compositor based on the contents of the fed hardware layers ; and returning to the determining step if there are any previously non-selected application window surfaces left in the memory . selecting multiple application window surfaces stored in a memory , wherein a number of the application window surfaces stored in the memory exceeds a number K of available hardware layers of the display subsystem , and wherein the number of selected application window surfaces is equal to the number K of the available hardware layers ; feeding data in each of the K selected multiple application window surfaces to a respective available hardware layer among the K available hardware layers ; compositing an intermediate frame by the compositor of the display subsystem based on the contents of the fed hardware layers ; determining if a number of remaining non-selected application window surfaces in the memory is greater than K-1; selecting K - 1 previously non-selected application window surface stored in the memory , if the number of remaining non-selected application window surfaces is equal or greater than K - 1, or selecting all remaining application window surfaces , if the number of remaining non-selected application window surfaces is smaller than K - 1; feeding the intermediate frame and data in each of the selected previously non-selected application window surface to respective available hardware layers among the K available hardware layers ; compositing a subsequent frame by the compositor based on the contents of the fed hardware layers ; and returning to the determining step if there are any previously non-selected application window surfaces left in the memory . <EOS>