Electronic device and method for determining rendering frequency
Disclosed is an electronic device and method for displaying an execution window of an application on a display. The method includes executing a first application and a second application, displaying a first execution window of the first application, and displaying a visual object related to a service provided by the first application at a first rendering frequency in a rendering region within the first execution window. The method includes displaying a second execution window of the second application, obtaining a first user input to move the second execution window over the first execution window, and based on obtaining the first user input, identifying whether the first execution window and the second execution window overlap at least in part.
1 . A method of an electronic device for displaying an execution window of an application via a display, the method comprising:
executing a first application and a second application;
displaying, via the display, a first execution window of the first application, and a visual object provided by the first application at a first rendering frequency in a rendering region within the first execution window;
displaying, via the display, a second execution window of the second application;
obtaining a first user input to move the second execution window over the first execution window;
based on obtaining the first user input, identifying whether the first execution window and the second execution window overlap at least in part;
in accordance with identifying that the first execution window and the second execution window overlap at least in part, determining a second rendering frequency for displaying at least a part of the visual object in a first non-overlapping region based on at least two of a size of an overlapping region being obscured by the second execution window in the rendering region of the first execution window, a size of the first non-overlapping region being not obscured by the second execution window in the rendering region of the first execution window, or size of the rendering region; and
displaying, via the display, the visual object in the first non-overlapping region at the second rendering frequency.
2 . The method of claim 1 , wherein identifying the second rendering frequency comprises:
identifying a ratio of the size of the first non-overlapping region to the size of the rendering region;
identifying whether the identified ratio is smaller than a first threshold; and
based on identifying that the identified ratio is smaller than the first threshold, identifying the second rendering frequency as smaller than the first rendering frequency.
3 . The method of claim 1 , further comprising:
identifying a ratio of the size of the first non-overlapping region to the size of the rendering region;
identifying whether the identified ratio is smaller than a second threshold; and
based on identifying that the identified ratio is smaller than the second threshold, stopping rendering the rendering region.
4 . The method of claim 1 , wherein identifying the second rendering frequency comprises,
identifying the second rendering frequency, based on at least one of a ratio of a size of the first execution window to a size of a whole region of the display, a ratio of the size of the rendering region to the size of the whole region of the display, or a ratio of a size of a display region not displaying the first execution window and the second execution window to the size of the whole region of the display.
5 . The method of claim 1 , wherein identifying the second rendering frequency comprises,
identifying the second rendering frequency based on at least one of a transparency applied to the first execution window, a blur effect level applied to the first execution window, or a color of an edge of a user interface (UI) object of the first application displayed in the rendering region.
6 . The method of claim 1 , wherein the display is unfoldable or foldable by at least one or more hinges.
7 . The method of claim 1 , wherein the electronic device is a head mounted device (HMD) device, and
displaying the first execution window and the second execution window comprises displaying, via the display, an image generated in a video-see-through manner.
8 . The method of claim 1 , further comprising:
display, via the display, a third execution window of a third application;
obtaining a second user input to move the third execution window over the first execution window;
based on obtaining the second user input, identifying whether the first execution window and the third execution window overlap at least in part;
in accordance with identifying that the first execution window and the third execution window overlap at least in part, determining a second non-overlapping region not obscured by the second execution window and the third execution window in the rendering region of the first execution window;
identifying a third rendering frequency for displaying the visual object in the second non-overlapping region based on the determined second non-overlapping region and the rendering region; and
displaying, via the display, the visual object in the second non-overlapping region at the third rendering frequency.
9 . The method of claim 1 , wherein the first execution window and the second execution window are included in an execution list representing execution histories of applications executed on the electronic device.
10 . The method of claim 1 , wherein a whole region of the display is divided into a plurality of regions by multiple windows,
wherein displaying the first execution window comprises displaying the first execution window as one of the multiple windows, and
wherein displaying the second execution window comprises displaying the second execution window in a picture in picture (PIP) form or in a pop-up window form.
11 . An electronic device comprising:
a display;
a memory for storing instructions; and
at least one processor,
wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
execute a first application and a second application;
display, via the display, a first execution window of the first application and a visual object provided by the first application at a first rendering frequency in a rendering region within the first execution window;
display, via the display, a second execution window of the second application,
obtain a first user input for moving the second execution window over the first execution window;
based on obtaining the first user input, identify whether the first execution window and the second execution window overlap at least in part;
in accordance with identifying that the first execution window and the second execution window overlap at least in part, determine a second rendering frequency for displaying at least a part of the visual object in a first non-overlapping region based on at least two of a size of an overlapping region being obscured by the second execution window in the rendering region of the first execution window, a size of the first non-overlapping region being not obscured by the second execution window in the rendering region of the first execution window, or a size of the rendering region; and
display, via the display, the visual object in the first non-overlapping region at the second rendering frequency.
12 . The electronic device of claim 11 , wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
identify a ratio of the size of the first non-overlapping region to the size of the rendering region,
identify whether the identified ratio is smaller than a first threshold, and
based on identifying that the identified ratio is smaller than the first threshold, identify the second rendering frequency as a value smaller than the first rendering frequency.
13 . The electronic device of claim 11 , wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
identify a ratio of the size of the first non-overlapping region to the size of the rendering region,
identify whether the identified ratio is smaller than a second threshold, and
stop rendering the rendering region, based on identifying that the identified ratio is smaller than the second threshold.
14 . The electronic device of claim 11 , wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
identify the second rendering frequency, based on at least one of a ratio of a size of the first execution window to a size of a whole region of the display, a ratio of the size of the rendering region to the size of the whole region of the display, or a ratio of a size of a display region not displaying the first execution window and the second execution window to the size of the whole region of the display.
15 . The electronic device of claim 11 , wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
identify the second rendering frequency based on at least one of a transparency applied to the first execution window, a blur effect level applied to the first execution window, or a color of an edge of a user interface (UI) object of the first application displayed in the rendering region.
16 . The electronic device of claim 11 , wherein the display is unfoldable or foldable by at least one or more hinges.
17 . The electronic device of claim 11 , wherein the electronic device is a head mounted device (HMD) device, and
wherein the instructions, when executed by the at least one processor, cause the electronic device to display, via the display, an image generated in a video-see-through manner on the display.
18 . The electronic device of claim 11 , wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
display, via the display, a third execution window of a third application;
obtain a second user input for moving the third execution window over the first execution window;
based on obtaining the second user input,
identify whether the first execution window and the third execution window overlap at least in part;
in accordance with identifying that the first execution window and the third execution window overlap at least in part, determine a second non-overlapping region not obscured by the second execution window and the third execution window in the rendering region of the first execution window,
identify a third rendering frequency for displaying the visual object in the second non-overlapping region based on the determined second non-overlapping region and the rendering region; and
display, via the display, the visual object in the second non-overlapping region at the third rendering frequency.
19 . The electronic device of claim 11 , wherein the first execution window and the second execution window are included in an execution list representing execution histories of applications executed on the electronic device.
20 . The electronic device of claim 11 , wherein a whole region of the display is divided into a plurality of regions by multiple windows, and
wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
display the first execution window as one of the multiple windows, and
display the second execution window in a picture in picture (PIP) form or in a pop-up window form.