Interface display method and device of virtual desktop, equipment and medium
By predicting the stop position of the input device and the common parts of the cache interface, the problem of the virtual desktop interface being unsmooth when the user's bandwidth is limited is solved, and a smooth operation experience and efficient bandwidth utilization is achieved.
Patent Information
- Application Number
- CN202411095095.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-11-01
AI Technical Summary
In the case of limited user bandwidth, the existing virtual desktop interface display technology has problems with poor smoothness, and differentiated coding and differentiated compression solutions affect the user experience.
By predicting the stop position of the input device, the common parts of the interface are cached in advance, and the differences are cached during actual operation, and the common and differences are retrieved for display, which improves bandwidth utilization and reduces the network instantaneous bandwidth requirements.
It realizes a smooth operating experience when the user's bandwidth is limited, improves the user experience, improves bandwidth utilization, and reduces the instantaneous bandwidth requirements of the transmission network.
Smart Images

Figure CN118885252A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud service technology, and in particular to a method, device, equipment and computer-readable storage medium for displaying an interface of a virtual desktop. Background Art
[0002] The virtual desktop is connected to the remote operation and maintenance software of the server through the network. The remote operation and maintenance software generates images based on the operation of the user / client, and transmits them to the client through the network, thus forming a local remote control interaction. As the display requirements of customer display devices and the complexity of the interface functions of UI software continue to increase, the pressure on network bandwidth is gradually increasing. In the face of the problem of increasing pressure on network bandwidth, differential encoding or differential compression is currently mostly used to reduce the transmission data density and size through differential encoding, and to reduce the requirements for the network environment through differential compression. However, whether it is differential encoding or differential compression, when the user bandwidth is limited, the current solution still has the problem of not being smooth, and the user experience will be affected due to differential processing. Therefore, how to achieve a smooth operating experience when the user bandwidth is limited has become a technical problem that needs to be solved urgently by technicians in this field. Summary of the invention
[0003] The purpose of the present invention is to provide a method, device, equipment and computer-readable storage medium for displaying an interface of a virtual desktop, which improves bandwidth utilization, reduces instantaneous bandwidth requirements of a transmission network, and can achieve a smooth operating experience and improve user experience when user bandwidth is limited.
[0004] In order to solve the above technical problems, the present invention provides a method for displaying a virtual desktop interface, comprising:
[0005] Predicting a stop position of the input device according to a moving trajectory of the input device on the virtual desktop;
[0006] Determining a target interface according to an operable area intersecting with the stop position of the input device and a branch tree of the operation interface;
[0007] Pre-caching the common parts of each of the target interfaces;
[0008] Determine an interface to be displayed according to actual operation of the input device, and cache a portion of the interface to be displayed except the common portion;
[0009] The common part of the interface to be displayed and the part of the interface to be displayed except the common part are retrieved for display.
[0010] In some embodiments, predicting the stop position of the input device according to the movement trajectory of the input device on the virtual desktop includes:
[0011] Predicting the stop position of the input device multiple times according to the movement trajectory of the input device on the virtual desktop;
[0012] The prediction results of multiple predictions are combined to determine the final stop position of the input device.
[0013] In some embodiments, predicting the stop position of the input device according to the movement trajectory of the input device on the virtual desktop includes:
[0014] Recording three adjacent positions on the moving track of the input device to obtain a first position, a second position and a third position; the first position is adjacent to the second position, and the second position is adjacent to the third position;
[0015] Calculating a first lateral velocity according to the abscissa of the first position and the abscissa of the second position;
[0016] Calculating a first longitudinal velocity according to the longitudinal coordinate of the first position and the longitudinal coordinate of the second position;
[0017] Calculating a first speed according to the first lateral speed and the first longitudinal speed;
[0018] Calculating a second lateral velocity according to the abscissa of the second position and the abscissa of the third position;
[0019] Calculating a second longitudinal velocity according to the longitudinal coordinate of the second position and the longitudinal coordinate of the third position;
[0020] Calculating a second speed according to the second lateral speed and the second longitudinal speed;
[0021] Predicting the trajectory direction of the input device according to the first speed, the second speed, and the corresponding relationship between the speed and the trajectory direction;
[0022] Calculating acceleration according to the first speed and the second speed;
[0023] Predicting the travel distance of the input device according to the acceleration and the corresponding relationship between the acceleration and the travel distance;
[0024] The stop position of the input device is predicted based on the predicted trajectory direction of the input device and the travel distance of the input device.
[0025] In some embodiments, determining the target interface according to the operable area intersecting with the stop position of the input device and the branch tree of the operation interface includes:
[0026] The target interface is determined according to an operable area intersecting with the stop position of the input device, a branch tree of the operation interface, and a preset number of cache levels.
[0027] In some embodiments, pre-caching the common parts of the target interfaces includes:
[0028] The common parts of the target interfaces are pre-cached during the network load trough phase.
[0029] In some embodiments, it also includes:
[0030] The operable area in the virtual desktop is divided and marked to obtain a plurality of the operable areas.
[0031] In some embodiments, it also includes:
[0032] When the number of interfaces of the virtual desktop is lower than a preset threshold, common parts of all interfaces of the virtual desktop are pre-cached to obtain a local cache image library.
[0033] In order to solve the above technical problems, the present invention also provides an interface display device for a virtual desktop, comprising:
[0034] A prediction module, used for predicting a stop position of the input device according to a moving track of the input device on the virtual desktop;
[0035] A determination module, configured to determine a target interface according to an operable area intersecting with the stop position of the input device and a branch tree of the operation interface;
[0036] A pre-caching module, used for pre-caching the common parts of each of the target interfaces;
[0037] A cache module, used to determine the interface to be displayed according to the actual operation of the input device, and cache the part of the interface to be displayed except the common part;
[0038] The display module is used to retrieve the common part of the interface to be displayed and the part of the interface to be displayed except the common part for display.
[0039] In order to solve the above technical problems, the present invention also provides an interface display device for a virtual desktop, comprising:
[0040] Memory for storing computer programs;
[0041] The processor is used to implement the steps of the above-mentioned virtual desktop interface display method when executing the computer program.
[0042] To solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the virtual desktop interface display method as described above are implemented.
[0043] To solve the above technical problem, the present invention further provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the virtual desktop interface display method as described above.
[0044] The interface display method of the virtual desktop provided by the present invention comprises: predicting the stop position of the input device according to the moving trajectory of the input device on the virtual desktop; determining the target interface according to the operable area intersecting with the stop position of the input device and the branch tree of the operation interface; pre-caching the common parts of each of the target interfaces; determining the interface to be displayed according to the actual operation of the input device, and caching the part of the interface to be displayed except the common part; calling the common part of the interface to be displayed and the part of the interface to be displayed except the common part for display.
[0045] It can be seen that the interface display method of the virtual desktop provided by the present invention predicts the stop position of the input device according to the movement trajectory of the input device before the input device moves to a certain operable area for actual operation, and then caches the common part of the interface that may be displayed subsequently in advance according to the predicted stop position of the input device. After the input device performs the actual operation, the part of the interface to be displayed except for the pre-cached common part is cached, thereby improving the utilization rate of the bandwidth, reducing the instantaneous bandwidth demand of the transmission network, and being able to achieve a smooth operation experience when the user bandwidth is limited.
[0046] The interface display device, equipment and computer-readable storage medium of the virtual desktop provided by the present invention all have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0048] Figure 1 A schematic diagram of a flow chart of a method for displaying a virtual desktop interface provided by an embodiment of the present invention;
[0049] Figure 2 A schematic diagram of a virtual desktop data transmission mechanism provided by an embodiment of the invention;
[0050] Figure 3 A schematic diagram of predicting a stop position of an input device provided by an embodiment of the present invention;
[0051] Figure 4 A schematic diagram of prediction of a mouse operation provided by an embodiment of the present invention;
[0052] Figure 5 A schematic diagram of an interface of a virtual desktop under different operations provided by an embodiment of the present invention;
[0053] Figure 6 A schematic diagram of a network load for data transmission provided by an embodiment of the present invention;
[0054] Figure 7 A schematic diagram of a virtual desktop interface display device provided by an embodiment of the present invention;
[0055] Figure 8 A schematic diagram of a virtual desktop interface display device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The core of the present invention is to provide a virtual desktop interface display method, device, equipment and computer-readable storage medium, which improves bandwidth utilization, reduces the instantaneous bandwidth demand of the transmission network, and can achieve a smooth operation experience and improve user experience when the user bandwidth is limited.
[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] Please refer to Figure 1 , Figure 1 A flowchart of a method for displaying a virtual desktop interface provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:
[0059] S101: predicting a stop position of the input device according to a moving trajectory of the input device on the virtual desktop;
[0060] refer to Figure 2As shown, the virtual desktop obtains remote information from the cloud service platform through the transmission network. The local input device selects and interacts with the remote information to complete the operation of the cloud service. The input device can be a mouse, a trackball, etc. The following takes the input device as an example to explain the interface display scheme of the virtual desktop provided by this embodiment. During the movement of the mouse, the stop position of the mouse is predicted according to the movement trajectory of the mouse.
[0061] In some embodiments, predicting the stop position of the input device according to the movement trajectory of the input device on the virtual desktop includes:
[0062] Recording three adjacent positions on the moving track of the input device to obtain a first position, a second position and a third position; the first position is adjacent to the second position, and the second position is adjacent to the third position;
[0063] Calculating a first lateral velocity according to the abscissa of the first position and the abscissa of the second position;
[0064] Calculating a first longitudinal velocity according to the longitudinal coordinate of the first position and the longitudinal coordinate of the second position;
[0065] Calculating a first speed according to the first lateral speed and the first longitudinal speed;
[0066] Calculating a second lateral velocity according to the abscissa of the second position and the abscissa of the third position;
[0067] Calculating a second longitudinal velocity according to the longitudinal coordinate of the second position and the longitudinal coordinate of the third position;
[0068] Calculating a second speed according to the second lateral speed and the second longitudinal speed;
[0069] Predicting the trajectory direction of the input device according to the first speed, the second speed, and the corresponding relationship between the speed and the trajectory direction;
[0070] Calculating acceleration according to the first speed and the second speed;
[0071] Predicting the travel distance of the input device according to the acceleration and the corresponding relationship between the acceleration and the travel distance;
[0072] The stop position of the input device is predicted based on the predicted trajectory direction of the input device and the travel distance of the input device.
[0073] Combination Figure 3As shown, the initial position S0 of the mouse on the virtual desktop and the two adjacent positions S1 and S2 after the initial position can be recorded. Among them, the time interval from S0 to S1 is equal to the time interval from S1 to S2. According to the coordinates of S0 and S1, the first speed V1 is calculated, and according to the coordinates of S1 and S2, the second speed V2 is calculated. According to the first speed V1 and the second speed V2, the acceleration A1 is calculated. According to the first speed V1 and the second speed V2 and the corresponding relationship between the speed and the trajectory direction, the trajectory direction of the mouse is predicted. Among them, the speed and the trajectory direction can be counted in advance to establish the corresponding relationship between the speed and the trajectory direction. On the basis of calculating the first speed V1 and the second speed V2, the trajectory direction of the mouse can be predicted according to the first speed V1 and the second speed V2 and the corresponding relationship between the speed and the trajectory direction. According to the acceleration A1 and the corresponding relationship between the acceleration and the travel distance, the travel distance of the mouse is predicted. Among them, the acceleration and the travel distance can be counted in advance to establish the corresponding relationship between the acceleration and the travel distance. Based on the calculated acceleration A1, the distance traveled by the mouse is predicted according to the acceleration A1 and the corresponding relationship between the acceleration and the travel distance. After the mouse trajectory direction and the travel distance are determined, the mouse stop position can be predicted. The predicted stop position of the mouse can be a sector area. The intersection of the sector area and the operable area is the possible operation area of the mouse.
[0074] In some embodiments, predicting the stop position of the input device according to the movement trajectory of the input device on the virtual desktop includes:
[0075] Predicting the stop position of the input device multiple times according to the movement trajectory of the input device on the virtual desktop;
[0076] The prediction results of multiple predictions are combined to determine the final stop position of the input device.
[0077] In order to improve the accuracy of the prediction, this embodiment performs multiple predictions based on the moving trajectory of the input device, and determines the final stop position of the input device by combining the prediction results of the multiple predictions. The method of each prediction can refer to the above embodiment. The position of the input device based on each prediction is not exactly the same. For example, the initial position S0 of the mouse on the virtual desktop and the two adjacent positions S1 and S2 after the initial position are recorded, and a prediction is performed using the prediction method of the above embodiment based on S0, S1 and S2. The position S2 of the mouse on the virtual desktop and the two adjacent positions S3 and S4 after the position are recorded, and a prediction is performed again based on S2, S3 and S4 using the prediction method of the above embodiment. Specifically, the first speed V3 is calculated based on the coordinates of S2 and S3, and the second speed V4 is calculated based on the coordinates of S3 and S4. The acceleration A2 is calculated based on the first speed V3 and the second speed V4. The trajectory direction of the mouse is predicted based on the corresponding relationship between the first speed V3 and the second speed V4 and the speed and the trajectory direction. According to the acceleration A2 and the corresponding relationship between the acceleration and the travel distance, the travel distance of the mouse is predicted. After the trajectory direction and the travel distance of the mouse are determined, the mouse stop position can be predicted. The position S4 of the mouse on the virtual desktop and the two adjacent positions S5 and S6 after the position are recorded, and according to S4, S5 and S6, the prediction method of the above embodiment is used to perform another prediction. Specifically, according to the coordinates of S4 and S5, the first speed V5 is calculated, and according to the coordinates of S5 and S6, the second speed V6 is calculated. According to the first speed V5 and the second speed V6, the acceleration A3 is calculated. According to the first speed V5 and the second speed V6 and the corresponding relationship between the speed and the trajectory direction, the trajectory direction of the mouse is predicted. According to the acceleration A3 and the corresponding relationship between the acceleration and the travel distance, the travel distance of the mouse is predicted. After the trajectory direction and the travel distance of the mouse are determined, the mouse stop position can be predicted. The prediction results of the three predictions are combined to determine the final stop position of the mouse.
[0078] The final stop position can be obtained by combining multiple prediction results, by taking the intersection of multiple prediction results as the final stop position, or by directly taking the prediction result of the last prediction as the final stop position.
[0079] S102: determining a target interface according to an operable area intersecting with the stop position of the input device and a branch tree of the operation interface;
[0080] There may be one or more operable areas that intersect with the mouse stop position. Figure 4 As shown, there are three operable areas that intersect with the mouse stop position ( Figure 4). If there is only one operable area that intersects with the mouse stop position, the target interface is determined based on the only operable area that intersects with the mouse stop position and the branch tree of the operation interface. If there are multiple operable areas that intersect with the mouse stop position, the target interface can be determined based on each operable area that intersects with the mouse stop position and the branch tree of the operation interface.
[0081] The branch tree of the operation interface is a branch tree composed of various operation interfaces, and each operation interface is a node of the branch tree. The next operation interface of a certain operation interface is the child node of the operation interface. The target interface refers to the interface that may be displayed after the currently displayed operation interface.
[0082] If there are multiple operable areas that intersect with the mouse stop position, you can further select the operable area with the largest intersection area with the mouse stop position from the multiple operable areas that intersect with the mouse stop position based on the size of the intersection area with the mouse stop position. The target interface can be determined only based on the selected operable area with the largest intersection area with the mouse stop position and the branch tree of the operation interface.
[0083] In some embodiments, determining the target interface according to the operable area intersecting with the stop position of the input device and the branch tree of the operation interface includes:
[0084] The target interface is determined according to an operable area intersecting with the stop position of the input device, a branch tree of the operation interface, and a preset number of cache levels.
[0085] The cache level is used to indicate the number of levels of the pre-cached interface. If the cache level is 1, the number of levels of the pre-cached interface is 1, that is, the interface of the next level of the current operation interface is pre-cached. If the cache level is 2, the number of levels of the pre-cached interface is 2, that is, the interface of the next two levels of the current operation interface is pre-cached. And so on. For example, J represents the current operation interface. According to the branch tree of the operation interface, the interfaces of the next level of J are J1 and J2, the interface of the next level of J1 is J11, and the interface of the next level of J2 is J12. If the cache level is 1, the number of levels of the pre-cached interface is 1, and the target interfaces include J1 and J2. If the cache level is 2, the number of levels of the pre-cached interface is 2, and the target interfaces include J1, J2, J11 and J12.
[0086] By setting the number of cache levels, you can pre-cache the common parts of multiple levels of interfaces that may be displayed later when the network is idle, which can effectively reduce the real-time pressure on the network.
[0087] S103: pre-caching the common parts of the target interfaces;
[0088] After determining the target interface, further determine the common parts of each target interface and pre-cache the common parts of each target interface. Figure 5 As shown, Figure 5 The three interfaces on the right side of the middle are target interfaces. The common parts of these three target interfaces are the rectangular area in the upper left corner, the rectangular area in the upper right corner and the rectangular area in the lower right corner.
[0089] In some embodiments, pre-caching the common parts of the target interfaces includes:
[0090] The common parts of the target interfaces are pre-cached during the network load trough phase.
[0091] Affected by the interaction frequency and the characteristics of cloud services, the basic load of the transmission network is in an unbalanced state, that is, the data transmission of the transmission network is usually Figure 6 In order to better utilize the bandwidth, this embodiment pre-selects and caches the common parts of each target interface during the network load valley phase, so as to form a stable network usage and reduce the demand for network bandwidth.
[0092] S104: determining an interface to be displayed according to actual operation of the input device, and caching a portion of the interface to be displayed except the common portion;
[0093] The interface to be displayed refers to the interface to be displayed next after the currently displayed operation interface. The interface to be displayed is one of the target interfaces. Once the mouse is actually operated, the next interface to be displayed is uniquely determined, and at this time, the part of the interface to be displayed other than the pre-cached common part, i.e., the difference part, is cached.
[0094] S105: retrieve the common part of the interface to be displayed and the part of the interface to be displayed other than the common part for display.
[0095] In some embodiments, it also includes:
[0096] The operable area in the virtual desktop is divided and marked to obtain a plurality of the operable areas.
[0097] The interface of the virtual desktop usually includes an operable area and an inoperable area. For the interface of the virtual desktop, the operable area in the interface is divided and marked.
[0098] In some embodiments, it also includes:
[0099] When the number of interfaces of the virtual desktop is lower than a preset threshold, common parts of all interfaces of the virtual desktop are pre-cached to obtain a local cache image library.
[0100] When the number of interfaces on the virtual desktop is lower than a preset threshold, this embodiment pre-caches the common parts of all interfaces to obtain a local cache image library. When a certain interface needs to be displayed, the corresponding common parts can be directly retrieved from the local cache image library for display, and only the difference parts of the interface need to be cached later, thereby fully utilizing the network bandwidth for the image changes of the operation interaction, further improving the user experience.
[0101] In summary, the interface display method of the virtual desktop provided by the present invention predicts the stop position of the input device according to the movement trajectory of the input device before the input device moves to a certain operable area for actual operation, and then caches the common part of the interface that may be displayed subsequently in advance according to the predicted stop position of the input device. After the input device performs the actual operation, the part of the interface to be displayed except the pre-cached common part is cached, thereby improving the utilization rate of the bandwidth, reducing the instantaneous bandwidth demand of the transmission network, and realizing a smooth operation experience when the user bandwidth is limited.
[0102] The present invention also provides a virtual desktop interface display device, and the device described below can be referred to in correspondence with the method described above. Figure 7 , Figure 7 A schematic diagram of a device provided by an embodiment of the present invention, combined with Figure 7 As shown, the device comprises:
[0103] A prediction module 10, configured to predict a stop position of the input device according to a moving track of the input device on the virtual desktop;
[0104] A determination module 20, configured to determine a target interface according to an operable area intersecting with the stop position of the input device and a branch tree of the operation interface;
[0105] A pre-caching module 30, used for pre-caching the common parts of each of the target interfaces;
[0106] A cache module 40, configured to determine the interface to be displayed according to the actual operation of the input device, and cache the portion of the interface to be displayed except the common portion;
[0107] The display module 50 is used to retrieve the common part of the interface to be displayed and the part of the interface to be displayed except the common part for display.
[0108] Based on the above embodiment, as a specific implementation, the prediction module 10 includes:
[0109] A prediction unit, used to predict the stop position of the input device multiple times according to the movement trajectory of the input device on the virtual desktop;
[0110] The synthesis unit is used to synthesize the prediction results of multiple predictions to determine the final stop position of the input device.
[0111] Based on the above embodiment, as a specific implementation, the prediction module 10 includes:
[0112] A recording unit, used to record three adjacent positions on the moving track of the input device to obtain a first position, a second position and a third position; the first position is adjacent to the second position, and the second position is adjacent to the third position;
[0113] A first calculation unit, configured to calculate a first lateral velocity according to the horizontal coordinate of the first position and the horizontal coordinate of the second position;
[0114] A second calculation unit, configured to calculate a first longitudinal velocity according to the longitudinal coordinate of the first position and the longitudinal coordinate of the second position;
[0115] a third calculation unit, configured to calculate a first speed according to the first lateral speed and the first longitudinal speed;
[0116] a fourth calculation unit, configured to calculate a second lateral velocity according to the abscissa of the second position and the abscissa of the third position;
[0117] a fifth calculation unit, configured to calculate a second longitudinal velocity according to the longitudinal coordinate of the second position and the longitudinal coordinate of the third position;
[0118] a sixth calculation unit, configured to calculate a second speed according to the second lateral speed and the second longitudinal speed;
[0119] a trajectory direction prediction unit, configured to predict the trajectory direction of the input device according to the first speed, the second speed, and a correspondence between the speed and the trajectory direction;
[0120] a seventh calculation unit, configured to calculate an acceleration according to the first speed and the second speed;
[0121] A travel distance prediction unit, configured to predict the travel distance of the input device according to the acceleration and the corresponding relationship between the acceleration and the travel distance;
[0122] The stop position prediction unit is used to predict the stop position of the input device according to the predicted trajectory direction of the input device and the travel distance of the input device.
[0123] Based on the above embodiment, as a specific implementation mode, the determination module 20 is specifically used for:
[0124] The target interface is determined according to an operable area intersecting with the stop position of the input device, a branch tree of the operation interface, and a preset number of cache levels.
[0125] Based on the above embodiment, as a specific implementation mode, the pre-caching module 30 is specifically used for:
[0126] The common parts of the target interfaces are pre-cached during the network load trough phase.
[0127] Based on the above embodiment, as a specific implementation method, it also includes:
[0128] The division and marking module is used to divide and mark the operable area in the virtual desktop to obtain a plurality of the operable areas.
[0129] Based on the above embodiment, as a specific implementation method, it also includes:
[0130] The second pre-caching module is used to pre-cache the common parts of all interfaces of the virtual desktop when the number of interfaces of the virtual desktop is lower than a preset threshold, so as to obtain a local cache image library.
[0131] The interface display device of the virtual desktop provided by the present invention predicts the stop position of the input device according to the movement trajectory of the input device before the input device moves to a certain operable area for actual operation, and then caches in advance the common parts of the interface that may be displayed subsequently according to the predicted stop position of the input device. After the input device performs the actual operation, the part of the interface to be displayed except the pre-cached common part is cached, thereby improving the utilization rate of the bandwidth, reducing the instantaneous bandwidth demand of the transmission network, and realizing a smooth operation experience when the user bandwidth is limited.
[0132] The present invention also provides a device, referring to Figure 8 As shown, the device includes a memory 1 and a processor 2 .
[0133] Memory 1, used for storing computer programs;
[0134] Processor 2 is used to execute the computer program to implement the following steps:
[0135] Predict the stop position of the input device according to the movement trajectory of the input device on the virtual desktop; determine the target interface according to the operable area that intersects with the stop position of the input device and the branch tree of the operation interface; pre-cache the common parts of each target interface; determine the interface to be displayed according to the actual operation of the input device, and cache the part of the interface to be displayed except the common part; retrieve the common part of the interface to be displayed and the part of the interface to be displayed except the common part for display.
[0136] For an introduction to the device provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.
[0137] The interface display device of the virtual desktop provided by the present invention predicts the stop position of the input device according to the movement trajectory of the input device before the input device moves to a certain operable area for actual operation, and then caches in advance the common parts of the interface that may be displayed subsequently according to the predicted stop position of the input device. After the input device performs the actual operation, the part of the interface to be displayed except the pre-cached common part is cached, thereby improving the utilization rate of the bandwidth, reducing the instantaneous bandwidth demand of the transmission network, and realizing a smooth operation experience when the user bandwidth is limited.
[0138] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:
[0139] Predict the stop position of the input device according to the movement trajectory of the input device on the virtual desktop; determine the target interface according to the operable area that intersects with the stop position of the input device and the branch tree of the operation interface; pre-cache the common parts of each target interface; determine the interface to be displayed according to the actual operation of the input device, and cache the part of the interface to be displayed except the common part; retrieve the common part of the interface to be displayed and the part of the interface to be displayed except the common part for display.
[0140] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0141] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not elaborate on it here.
[0142] The present invention also provides a computer program product, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the following steps are implemented:
[0143] Predict the stop position of the input device according to the movement trajectory of the input device on the virtual desktop; determine the target interface according to the operable area that intersects with the stop position of the input device and the branch tree of the operation interface; pre-cache the common parts of each target interface; determine the interface to be displayed according to the actual operation of the input device, and cache the part of the interface to be displayed except the common part; retrieve the common part of the interface to be displayed and the part of the interface to be displayed except the common part for display.
[0144] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, equipment, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0145] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0146] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0147] The above is a detailed introduction to the interface display method, device, equipment and medium of the virtual desktop provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A method for displaying a virtual desktop interface, characterized in that: include: Predicting a stop position of the input device according to a moving trajectory of the input device on the virtual desktop; Determining a target interface according to an operable area intersecting with the stop position of the input device and a branch tree of the operation interface; Pre-caching the common parts of each of the target interfaces; Determine an interface to be displayed according to actual operation of the input device, and cache a portion of the interface to be displayed except the common portion; The common part of the interface to be displayed and the part of the interface to be displayed except the common part are retrieved for display.
2. The method for displaying a virtual desktop interface according to claim 1, characterized in that: Predicting the stop position of the input device according to the movement trajectory of the input device on the virtual desktop includes: Predicting the stop position of the input device multiple times according to the movement trajectory of the input device on the virtual desktop; The prediction results of multiple predictions are combined to determine the final stop position of the input device.
3. The method for displaying a virtual desktop interface according to claim 1, characterized in that: Predicting the stop position of the input device according to the movement trajectory of the input device on the virtual desktop includes: Recording three adjacent positions on the moving track of the input device to obtain a first position, a second position and a third position; the first position is adjacent to the second position, and the second position is adjacent to the third position; Calculating a first lateral velocity according to the abscissa of the first position and the abscissa of the second position; Calculating a first longitudinal velocity according to the longitudinal coordinate of the first position and the longitudinal coordinate of the second position; Calculating a first speed according to the first lateral speed and the first longitudinal speed; Calculating a second lateral velocity according to the abscissa of the second position and the abscissa of the third position; Calculating a second longitudinal velocity according to the longitudinal coordinate of the second position and the longitudinal coordinate of the third position; Calculating a second speed according to the second lateral speed and the second longitudinal speed; Predicting the trajectory direction of the input device according to the first speed, the second speed, and the corresponding relationship between the speed and the trajectory direction; Calculating acceleration according to the first speed and the second speed; Predicting the travel distance of the input device according to the acceleration and the corresponding relationship between the acceleration and the travel distance; The stop position of the input device is predicted based on the predicted trajectory direction of the input device and the travel distance of the input device.
4. The method for displaying a virtual desktop interface according to claim 1, characterized in that: Determining the target interface according to an operable area intersecting with the stop position of the input device and a branch tree of the operation interface includes: The target interface is determined according to an operable area intersecting with the stop position of the input device, a branch tree of the operation interface, and a preset number of cache levels.
5. The method for displaying a virtual desktop interface according to claim 1, characterized in that: The common parts of the pre-cached target interfaces include: The common parts of the target interfaces are pre-cached during the network load trough phase.
6. The method for displaying a virtual desktop interface according to claim 1, characterized in that: Also includes: The operable area in the virtual desktop is divided and marked to obtain a plurality of the operable areas.
7. The method for displaying a virtual desktop interface according to claim 1, characterized in that: Also includes: When the number of interfaces of the virtual desktop is lower than a preset threshold, common parts of all interfaces of the virtual desktop are pre-cached to obtain a local cache image library.
8. A virtual desktop interface display device, characterized in that: include: A prediction module, used for predicting a stop position of the input device according to a moving track of the input device on the virtual desktop; A determination module, configured to determine a target interface according to an operable area intersecting with the stop position of the input device and a branch tree of the operation interface; A pre-caching module, used for pre-caching the common parts of each of the target interfaces; A cache module, used to determine the interface to be displayed according to the actual operation of the input device, and cache the part of the interface to be displayed except the common part; The display module is used to retrieve the common part of the interface to be displayed and the part of the interface to be displayed except the common part for display.
9. A virtual desktop interface display device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for displaying an interface of a virtual desktop as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for displaying an interface of a virtual desktop as described in any one of claims 1 to 7 are implemented.
