Display performance optimization method, device, equipment and storage medium
By acquiring the target media file and updating the interface display file using a dynamic deletion strategy, combined with a focus positioning strategy to control the focus position, the problem of slow loading and focus lag on smart TV screens has been solved, resulting in a smoother UI interaction.
Patent Information
- Application Number
- CN202110754354.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-01
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2041-07-01
AI Technical Summary
In existing technologies, smart TVs based on the Cobalt browser suffer from slow data loading and lag when moving focus.
By acquiring the target media file, determining the focus position and the number of files to be displayed based on the movement command, updating the files displayed on the first interface using a preset dynamic deletion strategy, and controlling the focus position according to the focus positioning strategy to optimize display performance.
It resolves the issue of slow loading during screen display, optimizes memory usage, improves the smoothness of focus movement, and enhances the smoothness of UI interaction.
Smart Images

Figure CN113515282B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of screen display, in particular to a display performance optimization method and device, equipment and storage medium. BACKGROUND
[0002] WebOS developed based on Linux TV system is the same as the webpage developed by PC, and needs to be rendered by a browser to run, so as to realize human-computer interaction. The memory occupation size of the built-in lightweight Cobalt browser on the TV is lower than that of the browser on the PC, so special care should be taken in the use of memory, otherwise the problems of lagging and memory leakage may occur, and even the phenomenon of being unable to continue to use. The multimedia module of WebOS is actually a multimedia file management function, which is used to manage the movie, picture and music files of the mobile device (U disk / hard disk), and finally realizes the function of playing the media file. The number of files of the user's mobile device is an unknown quantity, and when the number reaches more than 200 files, the performance of the lightweight Cobalt browser will be poor due to the small memory. The engineers generally use Chrome browser to develop Web software, and due to the difference between the two running environments, the software running normally and smoothly on the Chrome browser will have the problems of slow loading data, unsmooth UI rendering and lagging of moving UI focus when running on the Cobalt browser.
[0003] The above content is only used to assist in understanding the technical solutions of the present application, and does not represent the acknowledgement of the above content as prior art. SUMMARY
[0004] The main purpose of the present application is to provide a display performance optimization method, device, equipment and storage medium, which aims to solve the technical problems of slow loading data and lagging of moving focus when the existing intelligent TV based on Cobalt browser displays on the screen.
[0005] To achieve the above purpose, the present application provides a display performance optimization method, which comprises the following steps:
[0006] obtaining a target media file;
[0007] drawing a first interface display file on a display interface according to the target media file;
[0008] obtaining a moving instruction, determining the focus position and the number of display files according to the moving instruction;
[0009] updating the first interface display file according to the number of display files, the target media file and a preset dynamic pruning strategy;
[0010] controlling the focus position according to a focus positioning strategy.
[0011] Optionally, the obtaining the target media file comprises:
[0012] obtaining a target request parameter;
[0013] obtaining a corresponding initial target file in a preset database according to the target request parameter;
[0014] identifying a media file in the initial target file, and taking the media file as the target media file.
[0015] Optionally, the drawing the first interface display file on the display interface according to the target media file comprises:
[0016] obtaining a target drawing parameter;
[0017] obtaining a corresponding first interface display file in the target media file based on the target drawing parameter;
[0018] drawing the first interface display file on the display interface.
[0019] Optionally, the obtaining the moving instruction, determining the focus position and the display file number according to the moving instruction comprises:
[0020] obtaining a moving instruction;
[0021] determining the focus position according to the moving instruction;
[0022] determining the display file number according to the moving instruction and the focus position.
[0023] Optionally, the determining the display file number according to the moving instruction and the focus position comprises:
[0024] when the focus position is at a first edge of the display interface, if the moving instruction is right moving, the display file number is a first file number value;
[0025] when the focus position is at the first edge of the display interface, if the moving instruction is down moving, the display file number is a second file number value;
[0026] when the focus position is at a second edge of the display interface, if the moving instruction is left moving, the display file number is the first file number value;
[0027] when the focus position is at the second edge of the display interface, if the moving instruction is up moving, the display file number is the second file number value.
[0028] Optionally, the updating the first interface display file according to the display file quantity, the target media file and a preset dynamic deletion strategy comprises:
[0029] According to the target media file, an addition file corresponding to the display file quantity is acquired;
[0030] Based on the display file quantity, a deletion file corresponding to the display file quantity is deleted in the first interface display file;
[0031] The first interface display file is updated based on the addition file and the deletion file.
[0032] Optionally, the controlling the focus position according to the focus positioning strategy comprises:
[0033] It is judged whether a movement mark of the focus in a movement process is a preset movement mark;
[0034] If the movement mark of the focus in the movement process is the preset movement mark, the focus is moved to a corresponding focus position.
[0035] In addition, to achieve the above object, the present application further provides a display performance optimization device, which comprises:
[0036] An acquisition module is configured to acquire a target media file;
[0037] A drawing module is configured to draw a first interface display file on a display interface according to the target media file;
[0038] A determination module is configured to acquire a movement instruction, determine a focus position and a display file quantity according to the movement instruction;
[0039] An updating module is configured to update the first interface display file according to the display file quantity, the target media file and a preset dynamic deletion strategy;
[0040] A control module is configured to control the focus position according to a focus positioning strategy.
[0041] In addition, to achieve the above object, the present application further provides a display performance optimization device, which comprises a memory, a processor and a display performance optimization program stored in the memory and executable on the processor, and the display performance optimization program is configured to implement the steps of the display performance optimization method.
[0042] In addition, to achieve the above object, the present application further provides a storage medium, which stores a display performance optimization program, and the display performance optimization program implements the steps of the display performance optimization method when executed by a processor.
[0043] The application obtains a target media file, draws a first interface display file on a display interface according to the target media file, obtains a moving instruction, determines a focus position and a display file quantity according to the moving instruction, updates the first interface display file according to the display file quantity, the target media file and a preset dynamic pruning strategy, and controls the focus position according to a focus positioning strategy. In this way, the first interface display file is updated in real time by using the dynamic pruning strategy after the target media file is obtained, and the focus position is controlled according to the focus positioning strategy, so that the problem of slow loading during screen display caused by a large quantity of requested files is solved, the use of memory is optimized, the moving focus in the screen is smoother during movement, and the smoothness in the UI interaction process is improved. BRIEF DESCRIPTION OF DRAWINGS
[0044] Figure 1 is a structural schematic diagram of a display performance optimization device of a hardware running environment related to an embodiment of the application.
[0045] Figure 2 is a flowchart of a first embodiment of a display performance optimization method of the application.
[0046] Figure 3 is a UI interface schematic diagram of an embodiment of a display performance optimization method of the application.
[0047] Figure 4 is a UI interface display diagram of a first embodiment of a display performance optimization method of the application.
[0048] Figure 5 is a flowchart of a second embodiment of a display performance optimization method of the application.
[0049] Figure 6 is a whole flowchart of an embodiment of a display performance optimization method of the application.
[0050] Figure 7 is a structural block diagram of a first embodiment of a display performance optimization device of the application.
[0051] The implementation, functional features and advantages of the application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are intended to explain the application, but not to limit the application.
[0053] Reference Figure 1 , Figure 1 is a structural schematic diagram of a display performance optimization device of a hardware running environment related to an embodiment of the application.
[0054] As Figure 1As shown, the display performance optimization device can include a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is configured to realize the connection and communication among the components. The user interface 1003 can include a display, an input unit such as a keyboard, and can further include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 can be a high-speed Random Access Memory (RAM) memory, or a stable Non-Volatile Memory (NVM), such as a disk memory. The memory 1005 can also be a storage device independent of the aforementioned processor 1001.
[0055] Those skilled in the art can understand that the structure shown in the above Figure 1 The structure shown in the above does not constitute a limitation on the display performance optimization device, and can include more or fewer components than those shown, or combine certain components, or different component arrangements.
[0056] As shown in the above Figure 1 As a storage medium, the memory 1005 can include an operating system, a network communication module, a user interface module, and a display performance optimization program.
[0057] In the display performance optimization device shown in the above Figure 1 In the display performance optimization device shown in the above, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the display performance optimization device of the present application can be arranged in the display performance optimization device, and the display performance optimization device calls the display performance optimization program stored in the memory 1005 through the processor 1001, and executes the display performance optimization method provided by the embodiments of the present application.
[0058] The embodiments of the present application provide a display performance optimization method, which will be described in detail with reference to the Figure 2 , Figure 2 The flowchart of a first embodiment of the display performance optimization method of the present application is shown in the above.
[0059] In the above embodiment, the display performance optimization method includes the following steps:
[0060] Step S10: Obtain a target media file.
[0061] It should be noted that the execution subject of the embodiment is a control system of a large-screen intelligent playing device, the large-screen intelligent playing device can be a smart television or other devices, the embodiment is not limited by comparison, and the embodiment is explained and described by taking a smart television.
[0062] It can be understood that the target media file refers to a media file obtained from an external storage device such as a U disk, a hard disk or a memory built in a smart television. In the process of obtaining, only four types of files are displayed: folders, movies, pictures and music files. Other files that cannot be directly played will be directly filtered out and hidden.
[0063] In a specific implementation, in order to enable the smart television to have a faster loading speed when displaying files on the screen, further, the obtaining the target media file comprises: obtaining a target request parameter; obtaining a corresponding initial target file in a preset database according to the target request parameter; identifying a media file in the initial target file, and taking the media file as the target media file.
[0064] It should be noted that the target request parameter refers to a request file quantity parameter configured for a UI. For example, if the current target request parameter is 20, the smart television will request 20 files from the external storage device or the built-in memory starting from 0 in the first loading page. The actual file data return can be less than 20. The first-level directory file quantity of the current external storage device is used as a criterion. Finally, the returned file quantity data is stored in a cache variable T.
[0065] It can be understood that the initial target file refers to a file obtained from an external storage device or a built-in memory, which contains playable or unplayable files.
[0066] In a specific implementation, after obtaining the initial target file, the initial target file needs to be identified, and the files that cannot be directly played are filtered out and hidden, to obtain the final playable target media file.
[0067] Step S20: Drawing a first interface display file on a display interface according to the target media file.
[0068] It should be noted that the first interface in the first interface display file refers to a display interface of a smart television, such as shown in FIG. 1. Figure 3 As shown in FIG. 1, the UI interface design of the smart television includes three modules, TOP, which is a hidden part in the upper part of the smart television screen, TV SCREEN, which is a display part in the smart television screen, and BOTTOM, which is a hidden part in the bottom of the smart television screen. The first interface is the TV SCREEN part.
[0069] It can be understood that after obtaining the target media file, it is necessary to draw the display file in the display interface of the smart TV according to the obtained target media file. Since the display interface of the smart TV has limited capacity, the obtained target media file cannot be displayed in the display interface, so it is necessary to divide the target media file into three parts for drawing, one part is the first interface display file displayed in the display interface of the TV SCREEN, one part is the hidden file hidden in the TOP and BOTTOM of the smart TV, and the other part of the file is used for dynamic reduction when the interface is displayed.
[0070] In a specific implementation, in order to accurately draw the display file in the first interface, further, a target drawing parameter is obtained; a corresponding first interface display file is obtained in the target media file based on the target drawing parameter; and the first interface display file is drawn on the display interface.
[0071] It should be noted that the target drawing parameter refers to the number of files that can be drawn in the UI interface design of the smart TV. For example, the UI interface design of the current smart TV can only draw 16 media files at most, so 16 data are taken from the variable T to draw the UI interface.
[0072] It can be understood that since the display interface TV SCREEN of the smart TV has limited display capacity, the target drawing parameter includes a target display parameter and a target hidden parameter. For example, the display interface TV SCREEN can display up to 8 files, so the target display parameter and the target hidden parameter are 8 respectively. In the variable T of the target media file, 8 media files are obtained as the first interface display file, and 8 media files are obtained as the hidden file in the variable T of the target media file.
[0073] In a specific implementation, after obtaining the first interface display file, the first interface display file is arranged and drawn on the display interface TV SCREEN according to the UI interface design rule of the smart TV.
[0074] Step S30: obtaining a moving instruction, determining the focus position and the number of display files according to the moving instruction.
[0075] It should be noted that the moving instruction is an instruction issued by the user to move the UI focus. The focus can be moved up, down, left and right. The position of the focus is determined according to the moving instruction issued by the user.
[0076] It can be understood that when the UI focus of the smart TV is at the edge position, if the user's moving instruction is still received, the number of hidden files that need to be hidden from the TOP and BOTTOM of the smart TV interface is determined as the number of display files according to the user's moving instruction and the position of the focus.
[0077] In a specific implementation, in order to accurately determine the corresponding number of files to be displayed, the step of obtaining a movement command and determining the focus position and the number of files to be displayed based on the movement command further includes: obtaining a movement command; determining the focus position based on the movement command; and determining the number of files to be displayed based on the movement command and the focus position.
[0078] It should be noted that since the number of files to be displayed is determined by both the movement command and the focus position, the focus position must first be determined based on the user's movement command. After obtaining the focus position, the number of files to be displayed can then be determined.
[0079] In a specific implementation, since the display interface has two edges, namely the top edge and the bottom edge, the number of files displayed will differ depending on the edge the focus is on, based on the received movement command and the focus position. Further, determining the number of files displayed based on the movement command and the focus position includes: when the focus position is on the first edge of the display interface, if the movement command is to move to the right, the number of files displayed is a first file count value; when the focus position is on the first edge of the display interface, if the movement command is to move down, the number of files displayed is a second file count value; when the focus position is on the second edge of the display interface, if the movement command is to move to the left, the number of files displayed is the first file count value; and when the focus position is on the second edge of the interface, if the movement command is to move up, the number of files displayed is the second file count value.
[0080] It should be noted that the first edge of the display interface refers to the lower right corner of the TV screen where the focus is on, and the second edge of the display interface refers to the upper left corner of the TV screen where the focus is on.
[0081] It is understandable that the first file count value and the second file count value refer to the number of files that need to be called from the hidden interface.
[0082] In specific implementations, such as Figure 4 As shown, the TV SCREEN display interface can show 8 files. First, define a variable n = 0. When the focus is on the (n+1)th media file, before each key press to move the focus, it needs to check if there are two files in the BOTTOM that follow and hide them. If so, the file can be moved, and n increments by 2. Before each right-click to move the focus, it needs to check if there is one more file following it. If so, the file can be moved, and n increments by 1. When the focus moves down to the last line (n = 6 or 7), the focus must be prevented from moving further down; otherwise, the focus will become invisible. Pressing the up / left key to move the focus does the opposite.
[0083] Step S40: updating the first interface display file according to the display file quantity, the target media file and the preset dynamic deletion strategy.
[0084] It should be noted that after obtaining the display file, the dynamic deletion strategy refers to deleting the displayed file in real time based on the display file quantity and the quantity of the target media file when updating the first interface display file.
[0085] For example, in the request result of the data, each file in T is assigned a unique id, when the focus position is in the last 1 row, each time the / right key is pressed, it is needed to judge whether there is a hidden media file in Bottom, if there is no file, the focus position is not moved; if there is a file, the first row of Top is deleted, and the last two files of Bottom are extracted from T according to the id of the last file of Bottom, and then the two files are added as a new row of data to the bottom of Bottom; at the same time, the value of n is increased. When the value of n is not equal to 0 when mod 8 or mod 9, the interface data is not requested, and when equal to 0, the last 20 media files are requested from the index of T and added to T, and when there is no file data returned, it is needed to mark the end of the request to avoid repeated data caused by dynamic deletion of the focus position.
[0086] Step S50: controlling the focus position according to the focus positioning strategy.
[0087] It should be noted that when moving the focus, the focus positioning strategy includes the case that when the focus is at the edge position and still receives the moving instruction of the user, the focus position is kept unchanged.
[0088] In a specific implementation, since the moving speed of the focus is very fast when the moving action of the focus is always kept, even the moving phenomenon cannot be seen, therefore, in order to solve the problem, the focus of each file can be controlled to move, further, the controlling of the focus position according to the focus positioning strategy includes: judging whether the moving mark of the focus in the moving process is a preset moving mark; if the moving mark of the focus in the moving process is the preset moving mark, the focus is moved to the corresponding focus position.
[0089] It should be noted that the preset moving mark refers to the moving variable mark set for the moving focus, and the preset moving mark can be TRUE or other, which is not limited in the embodiment, but TRUE is taken as an example for illustration in the embodiment.
[0090] In a specific implementation, when the action of keeping moving the focus point is always kept, it is necessary to first determine whether the moving flag is TRUE, and when the moving flag is TRUE, the focus point can be moved, and then the moving flag is immediately set to FALSE, and after the position of the focus point is moved, the moving flag is set to TRUE after being delayed for 200 ms.
[0091] In the embodiment, the target media file is obtained, the first interface display file is drawn on the display interface according to the target media file, the moving instruction is obtained, the focus position and the number of display files are determined according to the moving instruction, the first interface display file is updated according to the number of display files, the target media file and the preset dynamic pruning strategy, and the focus position is controlled according to the focus positioning strategy. In the above manner, after the target media file is obtained, the first interface display file is updated in real time by using the dynamic pruning strategy, and the focus position is controlled according to the focus positioning strategy, so that the problem of slow loading during screen display caused by a large amount of requested files is solved, the use of memory is optimized, the moving focus point in the screen is more smooth during movement, and the smoothness in the UI interaction process is improved.
[0092] Reference Figure 5 , Figure 5 FIG. 2 is a flowchart of a display performance optimization method according to a second embodiment of the present application.
[0093] Based on the first embodiment, in the display performance optimization method, the step S40 comprises the following steps.
[0094] Step S401: According to the target media file, an added file corresponding to the number of display files is obtained.
[0095] It should be noted that when the target media file can still provide an added file corresponding to the number of display files, the added file is directly obtained from the target media file.
[0096] In a specific implementation, each file in T is assigned a unique id in the request result of the data, when the focus position is in the last 1 row, each time the / right key is pressed, it is needed to judge whether there is a hidden media file in the Bottom, if there is no file, the focus position is not moved; if there is a file, the first row of the Top is deleted, and the last file id of the Bottom is used to cut 2 files after the id from T, and then the 2 files are added as a new row of data to the bottom of the Bottom; at the same time, the value of n is increased. When the value of n is not equal to 0 mod 8 or mod 9, the interface data is not requested, and when the value is equal to 0, the last 20 media files are requested from the index of T and added to T, until there is no file data returned, which needs to be marked as the end of the request, to avoid repeated data caused by dynamic deletion of the focus position when moving up and down. When the focus position is in the last 1 row, each time the up / left key is pressed, it is needed to judge whether there is a hidden media file in the Top, if there is no file, the focus is moved up, and the value of n is decreased, when the focus moves to the first row, the focus is controlled to return to the Tab bar again; if there is a file, the focus position is not moved, and the last 1 row of the Bottom is deleted, and the first file id of the Top is used to cut 2 files before the id from T, and then the 2 files are added as a new row of data to the top of the Top, and at the same time, the value of n is decreased, n is decreased by 2 when moving up, and n is decreased by 1 when moving left.
[0097] Step S402: based on the display file quantity, deleting the deletion file corresponding to the display file quantity in the first interface display file.
[0098] It should be noted that, since the displayable display file quantity of the display interface is limited, after obtaining the newly displayed addition file, a corresponding number of deletion files need to be deleted from the original display file.
[0099] Step S403: based on the addition file and the deletion file, updating the first interface display file.
[0100] It should be noted that, after obtaining the addition file, the addition file is replaced and displayed in the display interface, and the original file and the addition file that are not deleted and replaced are used as the updated first interface display file.
[0101] For example, as Figure 6As shown, when the smart TV file list container is opened, the main content of the screen is composed of a media type Tab bar (Movie, Photo, Music) and a file list in the upper and lower parts, and the focus of the UI is by default on Movie in the top Tab bar. The bottom layer supports the parameter interface for segmented data acquisition through configuration, and the UI calls the interface to realize the function of page-based acquisition of media file data. Among them, the UI configuration is that the first page loading will request 20 files from 0, and the actual file data return may be less than 20. The number of files in the first-level directory of the current mobile device is used as the standard, and the returned file data is stored in the cache variable T. If T has data, 16 data are taken from variable T to draw the UI and control the file list to be visible up to 8 files; if there is no data, the file list displays the content as Empty. On the Tab bar, the left / right keys are used to filter files and call the interface to refresh the file list data; the up / down keys can switch the focus between the file list and the Tab bar. When the focus is switched from the Tab bar to the file list, the default focus is on the first media file. When the focus is on any media file, if the current file type is a folder, pressing the OK key can enter the next level folder and refresh variable T, and the file data of the current directory and the focus position are stored in the cache. When the back key is pressed to return to the upper directory, the cache is read to speed up the display and realize the focus memory; if the current file is not a folder, pressing the OK key can invoke the player and play the file. When the focus is on the n+1th media file, before moving the focus each time, it is necessary to determine whether there are the next two files. If there are, the focus can be moved and n is increased by 2; before moving the focus each time, it is necessary to determine whether there is the next one file. If there is, the focus can be moved and n is increased by 1. When the focus is moved down to the last row, that is, n is equal to 6 or 7, the focus cannot be moved down again, otherwise the focus will not be visible. Pressing the up / left key to move the focus is the opposite.
[0102] The embodiment adds files corresponding to the display file quantity according to the target media file; deletes files corresponding to the display file quantity in the first interface display file based on the display file quantity; and updates the first interface display file based on the added files and the deleted files. The first interface display file is updated in real time through dynamic deletion, which not only optimizes the use of memory, but also improves the smoothness of UI interaction.
[0103] In addition, with reference to Figure 7 The display performance optimization device comprises:
[0104] The acquisition module 10 is configured to acquire a target media file.
[0105] The drawing module 20 is configured to draw a first interface display file on a display interface according to the target media file.
[0106] The determining module 30 is configured to acquire a moving instruction, determine a focus position according to the moving instruction, and determine a display file number.
[0107] The updating module 40 is configured to update the first interface display file according to the display file number, the target media file, and a preset dynamic pruning strategy.
[0108] The control module 50 is configured to control the focus position according to a focus positioning strategy.
[0109] The embodiment acquires a target media file, draws a first interface display file on a display interface according to the target media file, acquires a moving instruction, determines a focus position and a display file number according to the moving instruction, updates the first interface display file according to the display file number, the target media file, and a preset dynamic pruning strategy, and controls the focus position according to a focus positioning strategy. In this way, the first interface display file is updated in real time by using a dynamic pruning strategy after the target media file is obtained, and the focus position is controlled according to a focus positioning strategy, thereby solving the problem of slow loading during screen display caused by a large amount of requested files, optimizing the use of memory, and making the moving focus in the screen more smooth during movement, improving the smoothness in the UI interaction process.
[0110] In an embodiment, the acquiring module 10 is further configured to acquire a target request parameter.
[0111] The corresponding initial target file is acquired in a preset database according to the target request parameter.
[0112] The media file in the initial target file is identified as a target media file.
[0113] In an embodiment, the drawing module 20 is further configured to acquire a target drawing parameter.
[0114] The corresponding first interface display file is acquired in the target media file based on the target drawing parameter.
[0115] The first interface display file is drawn on a display interface.
[0116] In an embodiment, the determining module 30 is further configured to acquire a moving instruction.
[0117] The focus position is determined according to the moving instruction.
[0118] The display file number is determined according to the moving instruction and the focus position.
[0119] In an embodiment, the determining module 30 is further configured to, when the focus position is at the first edge of the display interface, if the moving instruction is rightward moving, the display file quantity is a first file quantity value;
[0120] When the focus position is at the first edge of the display interface, if the moving instruction is downward moving, the display file quantity is a second file quantity value;
[0121] When the focus position is at the second edge of the display interface, if the moving instruction is leftward moving, the display file quantity is the first file quantity value;
[0122] When the focus position is at the second edge of the display interface, if the moving instruction is upward moving, the display file quantity is the second file quantity value.
[0123] In an embodiment, the updating module 40 is further configured to acquire an added file corresponding to the display file quantity according to the target media file;
[0124] Based on the display file quantity, delete a deleted file corresponding to the display file quantity in the first interface display file;
[0125] Update the first interface display file based on the added file and the deleted file.
[0126] In an embodiment, the control module 50 is further configured to judge whether a moving mark of the focus in the moving process is a preset moving mark;
[0127] If the moving mark of the focus in the moving process is the preset moving mark, move the focus to a corresponding focus position.
[0128] Since the device adopts all the technical solutions of the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.
[0129] In addition, the embodiment of the present application further proposes a storage medium, the storage medium stores a display performance optimization program, and the display performance optimization program is executed by a processor to realize the steps of the display performance optimization method as described above.
[0130] Since the storage medium adopts all the technical solutions of the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.
[0131] It should be noted that the above-described workflow is merely illustrative and does not limit the scope of protection of the present application. In actual applications, a person skilled in the art can select part or all of the above-described workflow to achieve the purpose of the present embodiment according to actual needs, which is not limited herein.
[0132] In addition, technical details not described in detail in the present embodiment can be found in the display performance optimization method provided by any embodiment of the present application, which will not be described here.
[0133] In addition, it should be noted that in this document, the terms "comprise", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or system comprising a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or system. Without more limitations, the element defined by the statement "comprises a" does not exclude the presence of another identical element in the process, method, article or system comprising the element.
[0134] The above-mentioned embodiment numbers of the present application are only for description, not representing the advantages or disadvantages of the embodiments.
[0135] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be realized by means of software and necessary general hardware platforms, of course, they can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk) and includes a number of instructions to make a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in various embodiments of the present application.
[0136] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation, or direct or indirect application in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A method for optimizing display performance, characterized in that, The display performance optimization method includes: Obtain the target media file; Draw the first interface display file on the display interface according to the target media file; Obtain a movement command and determine the focus position based on the movement command; When the focus position is at the first edge of the display interface, if the movement command is to move to the right, the number of displayed files is the first file number value; When the focus position is at the first edge of the display interface, if the movement command is to move down, then the number of displayed files is the second file number value; When the focus position is at the second edge of the display interface, if the movement command is to move to the left, the number of displayed files is the first file number value; When the focus position is at the second edge of the interface, if the movement command is to move upward, then the number of displayed files is the second file number value; Obtain the additional files corresponding to the number of display files based on the target media file; Based on the number of displayed files, delete files corresponding to the number of displayed files in the first interface display file; Update the files displayed on the first interface based on the added and deleted files; The focus position is controlled according to the focus positioning strategy.
2. The display performance optimization method as described in claim 1, characterized in that, The acquisition of the target media file includes: Obtain the target request parameters; The corresponding initial target file is retrieved from the preset database based on the target request parameters; Identify the media files in the initial target file and use those media files as the target media files.
3. The display performance optimization method as described in claim 1, characterized in that, The step of drawing a first interface display file on the display interface based on the target media file includes: Obtain the target drawing parameters; Based on the target drawing parameters, obtain the corresponding first interface display file from the target media file; Draw the first interface display file onto the display interface.
4. The display performance optimization method according to any one of claims 1 to 3, characterized in that, The control of focus position according to the focus positioning strategy includes: Determine whether the movement marker during the focus movement is a preset movement marker; If the movement marker of the focus during the movement process is a preset movement marker, then the focus is moved to the corresponding focus position.
5. A display performance optimization device, characterized in that, The display performance optimization device includes: Acquisition module: Used to acquire the target media file; Drawing module: used to draw the first interface display file on the display interface according to the target media file; Determination Module: Used to acquire movement commands and determine the focus position based on the movement commands; when the focus position is at the first edge of the display interface, if the movement command is to move to the right, the number of displayed files is a first file count value; when the focus position is at the first edge of the display interface, if the movement command is to move down, the number of displayed files is a second file count value; when the focus position is at the second edge of the display interface, if the movement command is to move to the left, the number of displayed files is a first file count value; when the focus position is at the second edge of the interface, if the movement command is to move up, the number of displayed files is a second file count value. Update module: used to obtain the number of add files corresponding to the number of display files based on the target media file; delete files corresponding to the number of display files in the first interface display file based on the number of display files; update the first interface display file based on the add files and delete files; Control module: Used to control the focus position according to the focus positioning strategy.
6. A display performance optimization device, characterized in that, The device includes: a memory, a processor, and a display performance optimization program stored in the memory and executable on the processor, the display performance optimization program being configured to implement the display performance optimization method as described in any one of claims 1 to 4.
7. A storage medium, characterized in that, The storage medium stores a display performance optimization program, which, when executed by a processor, implements the display performance optimization method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Interface display method and device, electronic equipment and storage medium
CN111124544A
Interface display method and device, computer equipment and storage medium
CN111158806A