CN114881839B - Image display method, computing device and storage medium - Google Patents
Image display method, computing device and storage mediumInfo
- Publication number
- CN114881839B CN114881839B CN202210451450.7A CN202210451450A CN114881839B CN 114881839 B CN114881839 B CN 114881839B CN 202210451450 A CN202210451450 A CN 202210451450A CN 114881839 B CN114881839 B CN 114881839B
- Authority
- CN
- China
- Prior art keywords
- memory
- preference
- speed
- display
- identification bit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/20—Processor architectures; Processor configuration, e.g. pipelining
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/60—Memory management
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention relates to the field of operating systems, and discloses an image display method, computing equipment and a storage medium. The method comprises the steps of testing a first writing speed of writing data into an internal memory by a central processing unit and a second writing speed of writing data into a display memory by the central processing unit, testing a first reading speed of reading data from the internal memory and a second reading speed of reading data from the display memory by a graphic processing unit, determining a memory preference according to the tested speeds, wherein the memory preference comprises the internal memory or the display memory, determining a target memory according to the memory preference when an image processing request is received, and storing the image data into the target memory, and acquiring the image data from the target memory by the graphic processing unit for image display. The invention can determine the optimal memory according to the writing speeds of the internal memory to different memories and the reading speeds of the graphic processor to different memories, thereby improving the processing capacity of the graphic processor to image processing.
Description
Technical Field
The present invention relates to the field of operating systems, and in particular, to an image display method, a computing device, and a storage medium.
Background
With the development of computer technology, graphics display and computation are accompanied by aspects of our lives, and graphics processors are also particularly important as key components of image processing. In order to process images more quickly during the operation of a computing device, an external graphics card is generally used to increase the image processing speed of the computing device.
But the image processing speed is not necessarily improved in the process of using the external display card. The display card is internally provided with a graphic processor and a display memory. The central processor of the computing device stores image data for the image to be displayed in the display memory and the graphics processor reads the data from the display memory. However, if the cpu has limited memory speed by the communication connection, it may instead slow down the graphics processor processing the image data.
For this reason, a new image display method is required.
Disclosure of Invention
To this end, the present invention provides an image display method in an effort to solve or at least alleviate the above-presented problems.
According to one aspect of the invention, there is provided an image display method suitable for execution in a computing device comprising a central processor and an internal memory and communicatively coupled to a graphics card comprising a display memory and a graphics processor, the method comprising the steps of testing a first writing speed of the central processor writing data to the internal memory and a second writing speed of the central processor writing data to the display memory, testing a first reading speed of the graphics processor reading data from the internal memory and a second reading speed of the graphics processor reading data from the display memory, determining a memory preference according to the first writing speed, the second writing speed, the first reading speed and the second reading speed, the memory preference comprising either the internal memory or the display memory, determining a target memory according to the memory preference when an image processing request is received, and storing the image data to the target memory, the graphics processor retrieving the image data from the target memory for image display.
Optionally, in the method according to the invention, determining the memory preference according to the first writing speed, the second writing speed, the first reading speed and the second reading speed comprises the steps of calculating a first parameter of the internal memory according to the first writing speed and the first reading speed, calculating a second parameter of the display memory according to the second writing speed and the second reading speed, and determining the memory preference according to the first parameter and the second parameter.
Optionally, in the method according to the invention, determining the memory preference based on the first parameter and the second parameter comprises the steps of comparing the first parameter with the second parameter to obtain a speed ratio, and determining the internal memory as the memory preference if the speed ratio is greater than a preset ratio threshold.
Optionally, in the method according to the invention, the method further comprises the step of determining the display memory as a memory preference if the speed ratio is equal to or less than a preset ratio threshold.
Optionally, in the method according to the invention, when receiving the image processing request, determining the target memory according to the memory preference option comprises the steps of judging whether a memory preference identification bit is set, wherein the memory preference identification bit comprises a display memory identification bit or an internal memory identification bit, acquiring the memory preference option if the memory preference identification bit is not set, setting the memory preference identification bit according to the memory preference option, and determining the target memory according to the memory preference identification bit.
Optionally, the method according to the invention further comprises the step of determining the target register based on the memory preference identification bit if provided.
Optionally, in the method according to the invention, setting the memory preference identification bit according to the memory preference comprises the step of setting the memory preference identification bit to the display memory identification bit if the memory preference is the display memory.
Optionally, in the method according to the invention, the method further comprises the step of setting the memory preference identification bit to be an internal memory identification bit if the memory preference is an internal memory.
According to another aspect of the present invention there is provided a computing device comprising one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing an image display method according to the present invention.
According to yet another aspect of the present invention, there is provided a computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the image display method according to the present invention.
The invention discloses an image display method, which is suitable for being executed in a computing device. The method comprises the steps of testing a first writing speed of the central processing unit for writing data into the internal memory and a second writing speed of the central processing unit for writing data into the display memory, testing a first reading speed of the graphic processor for reading data from the internal memory and a second reading speed of the graphic processor for reading data from the display memory, determining a memory preference according to the first writing speed, the second writing speed, the first reading speed and the second reading speed, wherein the memory preference comprises the internal memory or the display memory, determining a target memory according to the memory preference when an image processing request is received, and storing the image data into the target memory, and acquiring the image data from the target memory by the graphic processor for image display. The invention can determine the optimal memory according to the writing speeds of the internal memory to different memories and the reading speeds of the graphic processor to different memories, thereby improving the processing capacity of the graphic processor to image processing and reducing the limit of communication connection to the image processing capacity.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 shows a schematic diagram of a computing device 100 according to an exemplary embodiment of the invention;
FIG. 2 illustrates a flow diagram of an image display method 200 according to an exemplary embodiment of the invention;
FIG. 3 illustrates a schematic diagram of a memory test according to an exemplary embodiment of the invention;
FIG. 4 illustrates a schematic diagram of an application memory according to an exemplary embodiment of the present invention;
fig. 5 illustrates a schematic diagram for providing a display service according to an exemplary embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. Like reference numerals generally refer to like parts or elements.
Referring initially to FIG. 1, FIG. 1 shows a schematic diagram of a computing device 100 in accordance with an exemplary embodiment of the present invention. As shown in fig. 1, the computing device 100 includes an internal memory 111, an external memory 112, and a central processor 113. The internal memory 111 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read only memory), flash memory, or any combination of such memories. The external memory 112 is a storage other than the internal memory 111 and the cache of the cpu 113, and may be implemented as a hard disk, a floppy disk, an optical disk, a usb disk, and the like. The central processor 113 is the operational core and control and core of the computing device 100 for resolving computer instructions and processing data in computer software.
According to one embodiment of the invention, the computing device may further include an integrated graphics card (not shown) integrated into the computing device. The graphics processor in the integrated graphics card is also capable of processing images, but if the computing power of the graphics card 140 external to the computing device is greater, the graphics card 140 may be used to process data in most cases with preference. Included in a graphics card 140 communicatively coupled to computing device 100 are a display memory 141 and a graphics processor 142. The display memory 141 is a memory built in the graphics card 140, and is used for storing rendering data processed or to be extracted by the graphics processor 142. Graphics processor 142 is a microprocessor that performs image and graphics related operations.
The computing device 100 also runs an operating system 120 based on the components described above, which is adapted to control the operation of the computing device 100. Further, examples are practiced in connection with a graphics library, other operating systems, or any other application program and are not limited to any particular application or system. The invention is not limited to the particular type of operating system 120. One or more applications (not shown) may also be running in computing device 100 based on operating system 120. The present invention is not limited in the number and variety of applications running in computing device 100, for example, applications may be implemented as email and contacts applications, word processing applications, spreadsheet applications, database applications, slide show applications, drawing or computer-aided applications, web browser applications, and the like.
According to one aspect, computing device 100 may also be connected to one or more input devices 131, such as a keyboard, mouse, pen, voice input device, touch input device, and the like. One or more output devices 132, such as a display, speakers, printer, etc., may also be connected. The foregoing devices are examples and other devices may also be used. Computing device 100 may include one or more communication connections that allow communications with other computing devices. Examples of suitable communication connections include, but are not limited to, RF transmitter, receiver and/or transceiver circuitry, universal Serial Bus (USB), parallel and/or serial ports.
Embodiments of the present invention also provide a non-transitory readable storage medium storing instructions for causing the computing device to perform a method according to embodiments of the present invention. The readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be any method or technology for information storage. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of readable storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, read only compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transitory readable storage medium.
According to one aspect, communication media is embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., carrier wave or other transport mechanism) and includes any information delivery media. According to one aspect, the term "modulated data signal" describes a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio Frequency (RF), infrared, and other wireless media.
According to one embodiment of the invention, the computing device 100 and the graphics card 140 may be communicatively connected via a PCIE interface or the like. The invention is not limited to the particular manner in which the computing device 100 is connected to the graphics card 140. Since the computing device 100 and the graphics card 140 may actually use a variety of different connection manners, the data communication speed between the computing device 100 and the graphics card 140 is also related to the connection manner, and is sometimes fast and sometimes slow. When the data communication speed between the computing device 100 and the graphics card 140 is slow, if the display data is still stored in the display memory 141, the data processing speed requirement of the graphics card 140 for data processing cannot be met, and the data processing speed of the graphics card 140 is reduced.
In order to achieve a higher processing speed of the graphics card 140 on the image, the present invention provides an image display method 200. The image display method of the present invention is suitable for execution in a computing device, such as computing device 100.
Referring now to fig. 2, fig. 2 shows a flow diagram of an image display method 200 according to an exemplary embodiment of the invention. As shown in fig. 2, step S210 is first performed to test a first writing speed of the cpu writing data to the internal memory and a second writing speed of writing data to the display memory.
According to one embodiment of the invention, when the first writing speed is tested, the test memory is applied in the internal memory for writing data test, and when the second writing speed is tested, the driver of the display card 140 is called to apply for the test memory in the display memory for test.
According to one embodiment of the present invention, the first writing speed and the second writing speed may be specifically a writing data amount per unit time or a test time obtained by fixing the writing data amount.
Subsequently, step S220 is performed to test the first read speed of the graphic processor for reading data from the internal memory and the second read speed for reading data from the display memory.
According to one embodiment of the present invention, the first reading speed and the second reading speed may be specifically a reading data amount per unit time or a test time obtained by fixing the reading data amount. When the first writing speed and the second writing speed are specifically the amounts of data written in a unit time, the first reading speed and the second reading speed are specifically the amounts of data read in a unit time. When the first writing speed and the second writing speed are specifically the test time obtained by fixing the writing data amount, the first reading speed and the second reading speed are specifically the test time obtained by fixing the reading data amount.
According to one embodiment of the present invention, the memory size applied from the internal memory or the display memory can be configured as needed, such as by a user.
According to an embodiment of the present invention, when the size of the configured memory is not in compliance with the rule, is too small (e.g. 0) or too large, and exceeds the size of the memory capable of being tested, such that the writing speed or the reading speed cannot be tested correctly, the memory of the application memory, such as the internal memory or the display memory, can be set according to the default value.
Subsequently, step S230 is performed to determine a memory preference according to the first writing speed, the second writing speed, the first reading speed and the second reading speed, wherein the memory preference includes an internal memory or a display memory. Specifically, first, a first parameter of an internal memory is calculated according to a first writing speed and a first reading speed. According to one embodiment of the invention, the first parameter may be obtained in particular by summing the first writing speed and the first reading speed, and may also be obtained by averaging the first writing speed and the first reading speed. The present invention does not limit the specific calculation mode of the first parameter.
And secondly, calculating a second parameter of the display memory according to the second writing speed and the second reading speed. According to one embodiment of the invention, the second parameter may be obtained in particular by summing the second writing speed and the second reading speed, and may also be obtained by averaging the second writing speed and the second reading speed. The present invention does not limit the specific calculation mode of the second parameter.
And determining the memory preference option according to the first parameter and the second parameter. The method comprises the steps of comparing a first parameter with a second parameter to obtain a speed ratio, comparing the speed ratio with a preset proportion threshold, determining an internal memory as a memory preference option if the speed ratio is larger than the preset proportion threshold, and determining a display memory as the memory preference option if the speed ratio is equal to or smaller than the preset proportion threshold. If the speed ratio is larger than the preset ratio threshold, the display card is higher in efficiency of acquiring the display data when the central processing unit stores the display data into the internal memory, the display data is preferentially stored into the internal memory, and the display card can acquire the display data from the internal memory.
If the speed ratio is equal to or smaller than the preset ratio threshold, the display card is higher in efficiency of acquiring the display data when the central processing unit stores the display data into the display memory, the display data is preferentially stored into the internal memory, and the display card can acquire the display data from the internal memory.
According to one embodiment of the invention, the preset ratio threshold may be set to 1.
According to one embodiment of the present invention, steps S310-S330 of the present invention may be performed by a predetermined memory test application. And the default memory test application may also be integrated as a default memory test tool.
According to one embodiment of the invention, the preset memory test application may be configured to be started when the computing device is powered on. When the computing device is started, the display card 140 is completely initialized, after the preparation of the test environment of the preset memory test application is completed, the preset memory test application starts to execute, and the read-write speed of each memory is tested.
Referring now to fig. 3, fig. 3 is a schematic diagram illustrating a memory test according to an exemplary embodiment of the invention. As shown in fig. 3, when the test is performed, a predetermined memory test program is started, and the memories in the internal memory and the display memory are respectively applied. The CPU performs a write data test in the internal memory to obtain a speed s1, and performs a write data test in the display memory to obtain a speed s2. The graphics processor then reads data from the internal memory for testing to obtain speed s3, and reads data from the graphics processor for testing to obtain speed s4. Subsequently, the speed s1 and the speed s3 are added to obtain a first parameter, and the speed s2 and the speed s4 are added to obtain a second parameter.
And then comparing the first parameter with the second parameter to obtain a comparison result x. Comparing the comparison result x with a preset proportion threshold value n, determining the internal memory as a target memory if the comparison result x is larger than the preset proportion threshold value n, and determining the display memory as the target memory if the comparison result x is smaller than or equal to the preset proportion threshold value n.
Subsequently, step S240 is performed, when an image processing request is received, a target memory is determined according to the memory preference option, and image data is stored to the target memory. When an image processing request is received, a memory is required to be applied for storing image data, and the image data is stored in the applied memory.
When applying for memory, it is determined whether to apply for memory from the internal memory or from the display memory. Specifically, whether a memory preferred identification bit is set or not is judged, wherein the memory preferred identification bit comprises a display memory identification bit or an internal memory identification bit. The memory preferred identification bit is an identification bit stored in a register in advance and used for identifying whether the memory is applied from the internal memory or the display memory. If the memory preference identification bit is set, determining the target register according to the memory preference identification bit.
If the memory preference identification bit is not set, acquiring a memory preference option, setting the memory preference identification bit according to the memory preference option, and determining the target memory according to the memory preference identification bit.
When the memory preference identification bit is set, if the memory preference option is a display memory, the memory preference identification bit is set as the display memory identification bit, and if the memory preference option is an internal memory, the memory preference identification bit is set as the internal memory identification bit. The memory preference identification bit is set, so that the target register can be conveniently determined, memory preference options do not need to be acquired every time memory is applied, and the memory application speed is improved.
According to one embodiment of the invention, after determining the memory preference, the preset memory test program generates a test result file for saving the memory preference, so as to read the test result file after receiving the image processing request and determine the memory preference.
When the target memory is determined according to the memory preferred identification bit, the display memory is used as the target memory if the memory preferred identification bit is the display memory identification bit, and the internal memory is used as the target memory if the memory preferred identification bit is the internal memory.
Referring now to fig. 4, fig. 4 is a schematic diagram of an application memory according to an exemplary embodiment of the present invention. As shown in fig. 4, when the application of the memory is required, it is required to determine whether the memory preferred identification bit is set, and if the memory preferred identification bit is set, the application and use of the memory is directly performed according to the memory preferred identification bit.
If the memory preference identification bit is not set, acquiring a memory preference option, setting the memory preference identification bit according to the memory preference option, and applying for the memory and using according to the memory preference identification bit.
Fig. 5 illustrates a schematic diagram for providing a display service according to an exemplary embodiment of the present invention. As shown in fig. 5, when the computing device does not perform the memory test, the memory test application is executed after initializing the graphics card driver, and the above steps S310-S320 are executed to perform the test, so as to obtain and store the memory preference option.
The display server is then started. The display server may be implemented as a display server, and provides display services for clients that send display requests. The display server sets a memory identification bit according to the memory preference option, so that after receiving a display request of the client, the display server selects an internal memory or applies for the memory according to the memory preference identification bit for display.
The invention discloses an image display method, which is suitable for being executed in a computing device. The method comprises the steps of testing a first writing speed of the central processing unit for writing data into the internal memory and a second writing speed of the central processing unit for writing data into the display memory, testing a first reading speed of the graphic processor for reading data from the internal memory and a second reading speed of the graphic processor for reading data from the display memory, determining a memory preference according to the first writing speed, the second writing speed, the first reading speed and the second reading speed, wherein the memory preference comprises the internal memory or the display memory, determining a target memory according to the memory preference when an image processing request is received, and storing the image data into the target memory, and acquiring the image data from the target memory by the graphic processor for image display. The invention can determine the optimal memory according to the writing speeds of the internal memory to different memories and the reading speeds of the graphic processor to different memories, thereby improving the processing capacity of the graphic processor to image processing and reducing the limit of communication connection to the image processing capacity.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects.
Those skilled in the art will appreciate that the modules or units or groups of devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or groups of embodiments may be combined into one module or unit or group, and furthermore they may be divided into a plurality of sub-modules or sub-units or groups. Any combination of all features disclosed in this specification, and all processes or units of any method or apparatus so disclosed, may be employed, except that at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of apparatus for performing the functions performed by the elements for the purpose of practicing the invention.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code and the processor is configured to execute the image display method of the invention in accordance with instructions in said program code stored in the memory.
By way of example, and not limitation, computer readable media comprise computer storage media and communication media. Computer-readable media include computer storage media and communication media. Computer storage media stores information such as computer readable instructions, data structures, program modules, or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention.
Claims (7)
1. An image display method adapted to be executed in a computing device comprising a central processor and an internal memory and communicatively coupled to a graphics card comprising a display memory and a graphics processor, the method comprising the steps of:
Testing a first writing speed of the central processing unit for writing data into the internal memory and a second writing speed of the central processing unit for writing data into the display memory;
Testing a first read speed at which the graphics processor reads data from the internal memory and a second read speed at which data is read from the display memory;
Determining a memory preference option according to the first writing speed, the second writing speed, the first reading speed and the second reading speed, wherein the memory preference option comprises an internal memory or a display memory;
When an image processing request is received, determining a target memory according to the memory preference option, and storing image data into the target memory, wherein when the image processing request is received, determining the target memory according to the memory preference option comprises the steps of judging whether a memory preference identification bit is set, wherein the memory preference identification bit comprises a display memory identification bit or an internal memory identification bit, if the memory preference identification bit is not set, acquiring the memory preference option, setting the memory preference identification bit according to the memory preference option, and determining the target memory according to the memory preference identification bit;
The graphic processor acquires image data from the target memory for image display;
The determining the memory preference according to the first writing speed, the second writing speed, the first reading speed and the second reading speed comprises the following steps:
obtaining a first parameter of the internal memory according to the first writing speed and the first reading speed;
obtaining a second parameter of the display memory according to the addition of the second writing speed and the second reading speed;
Determining the memory preference according to the first parameter and the second parameter, wherein the determining the memory preference comprises comparing the first parameter with the second parameter to obtain a speed ratio, and determining the internal memory as the memory preference if the speed ratio is greater than a preset ratio threshold.
2. The method of claim 1, wherein the method further comprises the step of:
and if the speed ratio is equal to or smaller than the preset proportion threshold value, determining the display memory as a memory preference option.
3. The method of claim 1, wherein the method further comprises the step of:
if the memory preference identification bit is set, determining the target register according to the memory preference identification bit.
4. The method of claim 3, wherein said setting said memory preference identification bit according to said memory preference option comprises the steps of:
And if the memory preference option is a display memory, setting the memory preference identification bit as the display memory identification bit.
5. The method of claim 4, wherein the method further comprises the steps of:
And if the memory preference option is an internal memory, setting the memory preference identification bit as the internal memory identification bit.
6. A computing device, comprising:
One or more processors;
memory, and
One or more apparatuses comprising instructions for performing the method of any of claims 1-5.
7. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210451450.7A CN114881839B (en) | 2022-04-26 | 2022-04-26 | Image display method, computing device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210451450.7A CN114881839B (en) | 2022-04-26 | 2022-04-26 | Image display method, computing device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114881839A CN114881839A (en) | 2022-08-09 |
| CN114881839B true CN114881839B (en) | 2025-08-15 |
Family
ID=82671605
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210451450.7A Active CN114881839B (en) | 2022-04-26 | 2022-04-26 | Image display method, computing device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114881839B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118820147B (en) * | 2024-09-19 | 2025-02-07 | 山东云海国创云计算装备产业创新中心有限公司 | Data transmission channel switching method, computer equipment, storage medium and program product |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107077514A (en) * | 2016-05-23 | 2017-08-18 | 深圳市大疆创新科技有限公司 | A kind of method and apparatus of data storage |
| CN112748854A (en) * | 2019-10-30 | 2021-05-04 | 伊姆西Ip控股有限责任公司 | Optimized access to fast storage devices |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8913880B1 (en) * | 2013-06-23 | 2014-12-16 | Nice-Systems Ltd. | Method and apparatus for managing video storage |
| US9535612B2 (en) * | 2013-10-23 | 2017-01-03 | International Business Machines Corporation | Selecting a primary storage device |
| CN105260138A (en) * | 2015-09-30 | 2016-01-20 | 福州瑞芯微电子股份有限公司 | Read/write control system and method |
| CN105893118B (en) * | 2016-03-30 | 2019-11-26 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
| US10394492B2 (en) * | 2016-10-26 | 2019-08-27 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Securing a media storage device using write restriction mechanisms |
| CN108121628B (en) * | 2017-12-19 | 2021-01-05 | 珠海市君天电子科技有限公司 | Method and device for testing read-write speed and electronic equipment |
| CN109343954B (en) * | 2018-08-31 | 2022-10-25 | 联想(北京)有限公司 | Electronic equipment working method and system |
| CN109445683A (en) * | 2018-09-14 | 2019-03-08 | 深圳市佰仟金融服务有限公司 | A kind of file memory method and relevant device |
| CN111325655A (en) * | 2018-12-14 | 2020-06-23 | 中强光电股份有限公司 | Image processing system and image processing method thereof |
| CN112068765B (en) * | 2019-06-10 | 2024-04-26 | 伊姆西Ip控股有限责任公司 | Method, apparatus and computer program product for managing a storage system |
| CN111580756A (en) * | 2020-05-13 | 2020-08-25 | 中国长城科技集团股份有限公司 | Data operation method, device, equipment and computer readable storage medium |
| CN113806149B (en) * | 2020-06-17 | 2024-01-26 | 中国电信股份有限公司 | Memory read-write test method and device and storage medium |
| CN113253939B (en) * | 2021-06-11 | 2023-05-16 | 锐掣(杭州)科技有限公司 | Data processing method, device, electronic equipment and storage medium |
| CN114356243B (en) * | 2022-01-06 | 2025-08-19 | 苏州挚途科技有限公司 | Data processing method, device and server |
-
2022
- 2022-04-26 CN CN202210451450.7A patent/CN114881839B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107077514A (en) * | 2016-05-23 | 2017-08-18 | 深圳市大疆创新科技有限公司 | A kind of method and apparatus of data storage |
| CN112748854A (en) * | 2019-10-30 | 2021-05-04 | 伊姆西Ip控股有限责任公司 | Optimized access to fast storage devices |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114881839A (en) | 2022-08-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113468105B (en) | Data structure of data snapshot, related data processing method, device and system | |
| CN114881839B (en) | Image display method, computing device and storage medium | |
| CN112749072B (en) | Testing method and device for cloud storage system for storing training data | |
| CN112052647A (en) | A document editing method, apparatus, electronic device and readable storage medium | |
| CN112181870B (en) | Memory page management method, apparatus, device and readable storage medium | |
| CN107958076A (en) | A method, device, storage medium and electronic device for loading embedded web pages | |
| CN109842619B (en) | User account intercepting method and device | |
| CN112148486B (en) | Memory page management method, device, equipment and readable storage medium | |
| CN113470725B (en) | Method and device for testing dynamic random access memory | |
| CN113282240B (en) | Storage space data reading and writing method, device, storage medium and program product | |
| CN112540889B (en) | Method, device, equipment and medium for adjusting hard disk starting sequence in user mode | |
| CN113948146A (en) | Test method and device for solid state disk and electronic equipment | |
| CN111538540B (en) | Method for accelerating starting speed of embedded system and embedded system thereof | |
| CN116991542B (en) | Virtual machine snapshot method, system, electronic equipment and computer storage medium | |
| CN112732397A (en) | Method and equipment for loading and displaying big data report | |
| CN115657962B (en) | Storage space management method, device, electronic equipment and medium | |
| JP2002334015A (en) | Disk drive | |
| CN115114181B (en) | Method, device, computer storage medium and terminal for realizing data processing | |
| CN110750569A (en) | Data extraction method, device, equipment and storage medium | |
| CN117008972B (en) | Instruction analysis method, device, computing equipment and storage medium | |
| US12094019B1 (en) | Electronic asset management | |
| CN113992511B (en) | Cloud host creation method and device, electronic equipment and storage medium | |
| CN112650445B (en) | Method and device for performing trimming on a solid-state hard disk | |
| CN113553009B (en) | Data reading method, data writing method and data reading and writing method | |
| CN115061954B (en) | Missing page interrupt processing method, computing device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |