CN116650955A - Display card switching control method and device, computer equipment and storage medium - Google Patents

Display card switching control method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN116650955A
CN116650955A CN202310927239.2A CN202310927239A CN116650955A CN 116650955 A CN116650955 A CN 116650955A CN 202310927239 A CN202310927239 A CN 202310927239A CN 116650955 A CN116650955 A CN 116650955A
Authority
CN
China
Prior art keywords
display card
brightness
algorithm
information
card
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.)
Granted
Application number
CN202310927239.2A
Other languages
Chinese (zh)
Other versions
CN116650955B (en
Inventor
赵桂鑫
熊永平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinying Technology Co ltd
Original Assignee
Shenzhen Xinying Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Xinying Technology Co ltd filed Critical Shenzhen Xinying Technology Co ltd
Priority to CN202310927239.2A priority Critical patent/CN116650955B/en
Publication of CN116650955A publication Critical patent/CN116650955A/en
Application granted granted Critical
Publication of CN116650955B publication Critical patent/CN116650955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/69Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention relates to the field of graphics cards, and in particular, to a method and apparatus for controlling graphics card switching, a computer device, and a storage medium. The method comprises the following steps: receiving a starting command for starting a game program; judging whether the starting command needs to switch the display card or not; if yes, judging whether the conversion brightness algorithm of the current first display card is the same as the conversion brightness algorithm of the second display card to be switched; if not, acquiring current brightness information; acquiring a first data table, wherein the first data table is a relation table of the brightness of the first display card and the brightness of the second display card; searching first target brightness information corresponding to the current brightness information in the first data table; and responding to the starting command, executing a command for switching the display card, and adjusting the screen brightness to the brightness corresponding to the first target brightness information according to a conversion brightness algorithm of the second display card. The problem that the brightness of screen display is different when the display card is switched is solved.

Description

Display card switching control method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of graphics cards, and in particular, to a method and apparatus for controlling graphics card switching, a computer device, and a storage medium.
Background
A computer (commonly called as computer) is a modern electronic computing machine for high-speed computing, which can perform numerical computation, logical computation and memory function. The intelligent electronic device is modern intelligent electronic equipment which can automatically and rapidly process mass data according to program operation. At present, both notebook computers and desktop computers can use double display cards, and most of the double display cards need to be switched when games are started, but after the switching, the brightness of screen display can be different.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a control method, a device, computer equipment and a storage medium for display card switching, which aim to solve the problem that the brightness of screen display is different when the display card is switched.
The technical scheme provided by the invention is as follows:
a control method for graphics card switching, the method comprising:
receiving a starting command for starting a game program;
judging whether the starting command needs to switch the display card or not;
if yes, judging whether the conversion brightness algorithm of the current first display card is the same as the conversion brightness algorithm of the second display card to be switched;
if not, acquiring current brightness information;
acquiring a first data table, wherein the first data table is a relation table of the brightness of the first display card and the brightness of the second display card;
searching first target brightness information corresponding to the current brightness information in the first data table;
and responding to the starting command, executing a command for switching the display card, and adjusting the screen brightness to the brightness corresponding to the first target brightness information according to a conversion brightness algorithm of the second display card.
Preferably, in the step of determining whether the current conversion brightness algorithm of the first graphics card is the same as the conversion brightness algorithm of the second graphics card to be switched, the method includes:
acquiring manufacturer information of a first display card and manufacturer information of a second display card;
judging whether the manufacturer information of the first display card and the manufacturer information of the second display card belong to the same manufacturer;
if the first display card belongs to the same manufacturer, judging that the conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card;
if the first display card and the second display card do not belong to the same manufacturer, the conversion brightness algorithm of the first display card is judged to be different from the conversion brightness algorithm of the second display card.
Preferably, in the step of determining whether the current conversion brightness algorithm of the first graphics card is the same as the conversion brightness algorithm of the second graphics card to be switched, the method includes:
sending a first request for acquiring attribute information of a first display card to a manufacturer of the first display card, wherein the attribute information of the first display card comprises a first type algorithm adopted by conversion brightness of the first display card;
receiving attribute information of the first display card sent by a manufacturer of the first display card;
sending a second request for acquiring attribute information of a second display card to a manufacturer of the second display card, wherein the attribute information of the second display card comprises a second type algorithm adopted by the conversion brightness of the second display card;
receiving attribute information of the second display card sent by a manufacturer of the second display card;
judging whether the first type algorithm and the second type algorithm are the same algorithm or not;
if the conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card, the conversion brightness algorithm of the first display card is judged to be the same as the conversion brightness algorithm of the second display card;
if the conversion brightness algorithm is not the same algorithm, the conversion brightness algorithm of the first display card is judged to be different from the conversion brightness algorithm of the second display card.
Preferably, in the step of acquiring the first data table, it includes:
reading first hardware information of the first display card, wherein the first hardware information comprises a first key;
reading second hardware information of the second display card, wherein the second hardware information comprises a second key;
sending a request with the first key and the second key to a preset server, wherein the preset server stores the first data table and returns the first data table to the request with the first key and the second key;
and receiving a first data table returned by the preset server.
Preferably, the step of determining whether the start command needs to switch the graphics card includes:
extracting a display card identifier in the starting command;
if the extracted display card identifier is the second identifier of the second display card, judging whether the currently used display card is the second display card or not;
if the display card is the second display card, the display card does not need to be switched;
and if the display card is not the second display card, the display card needs to be switched.
Preferably, before the step of acquiring the current luminance information, it includes:
identifying whether the start command has brightness command information;
if not, generating a command for acquiring the current brightness information.
Preferably, after the step of identifying whether the start command has the brightness command information, the method includes:
if brightness command information exists, a first data table is obtained, wherein the first data table is a relation table of brightness of the first display card and brightness of the second display card;
searching second target brightness information corresponding to the brightness command information in the first data table;
and responding to the starting command, executing a command for switching the display card, and adjusting the screen brightness to the brightness corresponding to the second target brightness information according to a conversion brightness algorithm of the second display card.
The invention also provides a control device for display card switching, which comprises:
a first receiving module for receiving a start command for starting a game program;
the first judging module is used for judging whether the starting command needs to switch the display card or not;
the second judging module is used for judging whether the current conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card to be switched or not if yes;
the first acquisition module is used for acquiring current brightness information if not;
the second acquisition module is used for acquiring a first data table, wherein the first data table is a relation table of the brightness of the first display card and the brightness of the second display card;
the first searching module is used for searching first target brightness information corresponding to the current brightness information in the first data table;
the first processing module is used for responding to the starting command, executing the command of switching the display card, and adjusting the screen brightness to the brightness corresponding to the first target brightness information according to the conversion brightness algorithm of the second display card.
The invention also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program.
The invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method described above.
According to the technical scheme, the invention has the beneficial effects that: when a game is started, if the display card is required to be switched, corresponding first target brightness information is searched in a first data table according to the current brightness information, and after the display card is switched into a second display card, the screen brightness is adjusted to the brightness corresponding to the first target brightness information, so that the brightness corresponding to the first target brightness information is the same as the current brightness of the previous first display card, the screen brightness is not changed, and the problem that the brightness of screen display is different when the display card is switched is solved.
Drawings
FIG. 1 is a flowchart of a method for controlling video card switching provided by an embodiment of the present invention;
FIG. 2 is a functional block diagram of a display card switching control device according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a computer device to which an embodiment of the present invention is applied.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, an embodiment of the present invention provides a method for controlling graphics card switching, where the method includes:
step S101, a start command for starting a game program is received.
The user clicks an icon of the game program, thereby receiving a start command of the game program.
Step S102, judging whether the starting command needs to switch the display card.
For the game program to be started, whether the display card needs to be switched or not is judged, if the display card does not need to be switched, the current first display card is used for starting the game program, and the current screen brightness is kept unchanged.
And step S103, if so, judging whether the current conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card to be switched.
If the display cards need to be switched, further judgment is needed to judge whether the conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card, and if the conversion brightness algorithms of the first display card and the second display card are different, the same brightness is the same, so that brightness difference exists.
Step S104, if not, the current brightness information is obtained.
If the conversion brightness algorithm of the first display card is different from the conversion brightness algorithm of the second display card, the current brightness information is obtained, namely the current brightness information of the first display card to the screen.
Step 105, a first data table is obtained, where the first data table is a relation table between the brightness of the first graphics card and the brightness of the second graphics card.
The first data table is preset by a display card manufacturer, and specifically, the first data table is a relation table between the brightness of the first display card and the brightness of the second display card.
Step S106, first target brightness information corresponding to the current brightness information is found out in the first data table.
After the first data table is obtained, matching and searching are carried out in the first data table according to the current brightness information, and first target brightness information corresponding to the current brightness information is searched.
And step S107, responding to the starting command, executing a command for switching the display card, and adjusting the screen brightness to the brightness corresponding to the first target brightness information according to a conversion brightness algorithm of the second display card.
After the first target brightness information is obtained, the game program is allowed to start, the first display card is switched to the second display card, and then the brightness of the screen is adjusted according to a conversion brightness algorithm of the second display card to the brightness corresponding to the first target brightness information.
When a game is started, if the display card is required to be switched, corresponding first target brightness information is searched in a first data table according to the current brightness information, and after the display card is switched into a second display card, the screen brightness is adjusted to the brightness corresponding to the first target brightness information, so that the brightness corresponding to the first target brightness information is the same as the current brightness of the previous first display card, the screen brightness is not changed, and the problem that the brightness of screen display is different when the display card is switched is solved.
In this embodiment, in the step of determining whether the current conversion brightness algorithm of the first graphics card is the same as the conversion brightness algorithm of the second graphics card to be switched, the method includes:
acquiring manufacturer information of a first display card and manufacturer information of a second display card;
judging whether the manufacturer information of the first display card and the manufacturer information of the second display card belong to the same manufacturer;
if the first display card belongs to the same manufacturer, judging that the conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card;
if the first display card and the second display card do not belong to the same manufacturer, the conversion brightness algorithm of the first display card is judged to be different from the conversion brightness algorithm of the second display card.
If the first graphics card and the second graphics card are the same manufacturer, the same conversion brightness algorithm is generally adopted, and then the conversion brightness algorithm of the first graphics card and the second graphics card is considered to be the same. If the first graphics card and the second graphics card are different manufacturers, different conversion brightness algorithms are generally adopted, and then the conversion brightness algorithms of the first graphics card and the second graphics card are considered to be different.
In some embodiments, in the step of determining whether the current conversion brightness algorithm of the first graphics card is the same as the conversion brightness algorithm of the second graphics card to be switched, the method includes:
sending a first request for acquiring attribute information of a first display card to a manufacturer of the first display card, wherein the attribute information of the first display card comprises a first type algorithm adopted by conversion brightness of the first display card;
receiving attribute information of the first display card sent by a manufacturer of the first display card;
sending a second request for acquiring attribute information of a second display card to a manufacturer of the second display card, wherein the attribute information of the second display card comprises a second type algorithm adopted by the conversion brightness of the second display card;
receiving attribute information of the second display card sent by a manufacturer of the second display card;
judging whether the first type algorithm and the second type algorithm are the same algorithm or not;
if the conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card, the conversion brightness algorithm of the first display card is judged to be the same as the conversion brightness algorithm of the second display card;
if the conversion brightness algorithm is not the same algorithm, the conversion brightness algorithm of the first display card is judged to be different from the conversion brightness algorithm of the second display card.
The attribute information of the first display card is obtained from a manufacturer of the first display card, and the attribute information of the second display card is obtained from a manufacturer of the second display card, wherein the attribute information comprises a type algorithm adopted by the conversion brightness of the display card, and if the first type algorithm and the second type algorithm are the same algorithm, the conversion brightness algorithm of the first display card and the second display card is considered to be the same. If the first type of algorithm and the second type of algorithm are different algorithms, the converted brightness algorithm of the first display card and the second display card is considered to be different.
In this embodiment, in the step of acquiring the first data table, it includes:
reading first hardware information of the first display card, wherein the first hardware information comprises a first key;
reading second hardware information of the second display card, wherein the second hardware information comprises a second key;
sending a request with the first key and the second key to a preset server, wherein the preset server stores the first data table and returns the first data table to the request with the first key and the second key;
and receiving a first data table returned by the preset server.
The method comprises the steps that a first data table is pre-stored in a preset server, the preset server can verify when receiving a request for acquiring the first data table, if the request comprises a first key and a second key, the request is allowed, and the first data table is sent to a path corresponding to the request.
In this embodiment, the step of determining whether the start command needs to switch the graphics card includes:
extracting a display card identifier in the starting command;
if the extracted display card identifier is the second identifier of the second display card, judging whether the currently used display card is the second display card or not;
if the display card is the second display card, the display card does not need to be switched;
and if the display card is not the second display card, the display card needs to be switched.
And judging whether the display card needs to be switched or not by proposing the display card identification in the starting command.
In this embodiment, before the step of acquiring the current luminance information, the method includes:
identifying whether the start command has brightness command information;
if not, generating a command for acquiring the current brightness information.
If the start command is no brightness command information, the step of acquiring current brightness information is performed.
In this embodiment, after the step of identifying whether the start command has the brightness command information, the method includes:
if brightness command information exists, a first data table is obtained, wherein the first data table is a relation table of brightness of the first display card and brightness of the second display card;
searching second target brightness information corresponding to the brightness command information in the first data table;
and responding to the starting command, executing a command for switching the display card, and adjusting the screen brightness to the brightness corresponding to the second target brightness information according to a conversion brightness algorithm of the second display card.
If the starting command is the brightness command information, the priority of the brightness command information is higher than the current brightness, the brightness command information is required to be executed, but the brightness in the brightness command information is not directly executed, the second target brightness information corresponding to the brightness command information is searched in the first data table, and after the screen brightness is switched to the second display card, the screen brightness is adjusted to the brightness corresponding to the second target brightness information.
As shown in fig. 2, an embodiment of the present invention provides a control device 1 for graphics card switching, where the device 1 includes a first receiving module 11, a first judging module 12, a second judging module 13, a first acquiring module 14, a second acquiring module 15, a first searching module 16, and a first processing module 17.
The first receiving module 11 is configured to receive a start command for starting a game program.
The user clicks an icon of the game program, thereby receiving a start command of the game program.
A first judging module 12, configured to judge whether the startup command needs to switch the graphics card.
For the game program to be started, whether the display card needs to be switched or not is judged, if the display card does not need to be switched, the current first display card is used for starting the game program, and the current screen brightness is kept unchanged.
And the second judging module 13 is configured to judge whether the current conversion brightness algorithm of the first graphics card is the same as the conversion brightness algorithm of the second graphics card to be switched if yes.
If the display cards need to be switched, further judgment is needed to judge whether the conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card, and if the conversion brightness algorithms of the first display card and the second display card are different, the same brightness is the same, so that brightness difference exists.
The first obtaining module 14 is configured to obtain the current brightness information if not.
If the conversion brightness algorithm of the first display card is different from the conversion brightness algorithm of the second display card, the current brightness information is obtained, namely the current brightness information of the first display card to the screen.
The second obtaining module 15 is configured to obtain a first data table, where the first data table is a relationship table between the brightness of the first graphics card and the brightness of the second graphics card.
The first data table is preset by a display card manufacturer, and specifically, the first data table is a relation table between the brightness of the first display card and the brightness of the second display card.
The first searching module 16 is configured to search the first data table for first target brightness information corresponding to the current brightness information.
After the first data table is obtained, matching and searching are carried out in the first data table according to the current brightness information, and first target brightness information corresponding to the current brightness information is searched.
The first processing module 17 is configured to respond to the start command, execute a command for switching the display card, and adjust the screen brightness to the brightness corresponding to the first target brightness information according to the conversion brightness algorithm of the second display card.
After the first target brightness information is obtained, the game program is allowed to start, the first display card is switched to the second display card, and then the brightness of the screen is adjusted according to a conversion brightness algorithm of the second display card to the brightness corresponding to the first target brightness information.
When a game is started, if the display card is required to be switched, corresponding first target brightness information is searched in a first data table according to the current brightness information, and after the display card is switched into a second display card, the screen brightness is adjusted to the brightness corresponding to the first target brightness information, so that the brightness corresponding to the first target brightness information is the same as the current brightness of the previous first display card, the screen brightness is not changed, and the problem that the brightness of screen display is different when the display card is switched is solved.
In the present embodiment, the second judging module 13 includes:
the first sub-acquisition module is used for acquiring manufacturer information of the first display card and manufacturer information of the second display card;
the first sub-judging module is used for judging whether the manufacturer information of the first display card and the manufacturer information of the second display card belong to the same manufacturer;
the first sub-judging module is used for judging that the conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card if the first sub-judging module belongs to the same manufacturer;
and the second sub-judging module is used for judging that the conversion brightness algorithm of the first display card is different from the conversion brightness algorithm of the second display card if the first sub-judging module does not belong to the same manufacturer.
If the first graphics card and the second graphics card are the same manufacturer, the same conversion brightness algorithm is generally adopted, and then the conversion brightness algorithm of the first graphics card and the second graphics card is considered to be the same. If the first graphics card and the second graphics card are different manufacturers, different conversion brightness algorithms are generally adopted, and then the conversion brightness algorithms of the first graphics card and the second graphics card are considered to be different.
In some embodiments, the second determining module 13 includes:
the first sub-sending module is used for sending a first request for acquiring attribute information of a first display card to a manufacturer of the first display card, wherein the attribute information of the first display card comprises a first type algorithm adopted by the conversion brightness of the first display card;
the first sub-receiving module is used for receiving attribute information of the first display card, which is sent by a manufacturer of the first display card;
the second sub-sending module is used for sending a second request for acquiring the attribute information of a second display card to a manufacturer of the second display card, and the attribute information of the second display card comprises a second type algorithm adopted by the conversion brightness of the second display card;
the second sub-receiving module is used for receiving attribute information of the second display card, which is sent by a manufacturer of the second display card;
the second sub-judging module is used for judging whether the first type algorithm and the second type algorithm are the same algorithm or not;
the third sub-judging module is used for judging that the conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card if the first sub-judging module is the same algorithm;
and the fourth sub-judging module is used for judging that the conversion brightness algorithm of the first display card is different from the conversion brightness algorithm of the second display card if the conversion brightness algorithm of the first display card is not the same algorithm.
The attribute information of the first display card is obtained from a manufacturer of the first display card, and the attribute information of the second display card is obtained from a manufacturer of the second display card, wherein the attribute information comprises a type algorithm adopted by the conversion brightness of the display card, and if the first type algorithm and the second type algorithm are the same algorithm, the conversion brightness algorithm of the first display card and the second display card is considered to be the same. If the first type of algorithm and the second type of algorithm are different algorithms, the converted brightness algorithm of the first display card and the second display card is considered to be different.
In the present embodiment, the second acquisition module 15 includes:
the first sub-reading module is used for reading first hardware information of the first display card, and the first hardware information comprises a first key;
the second sub-reading module is used for reading second hardware information of the second display card, and the second hardware information comprises a second secret key;
the first sub-request module is used for sending a request with the first key and the second key to a preset server, wherein the preset server stores the first data table, and returns the first data table to the request with the first key and the second key;
and the third sub-receiving module is used for receiving the first data table returned by the preset server.
The method comprises the steps that a first data table is pre-stored in a preset server, the preset server can verify when receiving a request for acquiring the first data table, if the request comprises a first key and a second key, the request is allowed, and the first data table is sent to a path corresponding to the request.
In the present embodiment, the first judgment module 12 includes:
the first sub-extraction module is used for extracting the display card identifier in the starting command;
the third sub-judging module is used for judging whether the currently used display card is the second display card or not if the extracted display card identifier is the second identifier of the second display card;
the first sub-execution module is used for not switching the display card if the second display card is the second display card;
and the second sub-execution module is used for switching the display card if the display card is not the second display card.
And judging whether the display card needs to be switched or not by proposing the display card identification in the starting command.
In this embodiment, the apparatus 1 includes:
the first identification module is used for identifying whether the starting command has brightness command information or not;
the first generation module is used for generating a command for acquiring the current brightness information if not.
If the start command is no brightness command information, the step of acquiring current brightness information is performed.
In this embodiment, the apparatus 1 includes:
the third acquisition module is used for acquiring a first data table if the brightness command information exists, wherein the first data table is a relation table of the brightness of the first display card and the brightness of the second display card;
the second searching module is used for searching second target brightness information corresponding to the brightness command information in the first data table;
and the second processing module is used for responding to the starting command, executing the command of switching the display card and adjusting the screen brightness to the brightness corresponding to the second target brightness information according to the conversion brightness algorithm of the second display card.
If the starting command is the brightness command information, the priority of the brightness command information is higher than the current brightness, the brightness command information is required to be executed, but the brightness in the brightness command information is not directly executed, the second target brightness information corresponding to the brightness command information is searched in the first data table, and after the screen brightness is switched to the second display card, the screen brightness is adjusted to the brightness corresponding to the second target brightness information.
As shown in fig. 3, in an embodiment of the present invention, a computer device is further provided, where the computer device may be a server, and the internal structure of the computer device may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as a model of a control method of the display card switching. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for controlling graphics card switching.
The processor executes the steps of the display card switching control method:
receiving a starting command for starting a game program;
judging whether the starting command needs to switch the display card or not;
if yes, judging whether the conversion brightness algorithm of the current first display card is the same as the conversion brightness algorithm of the second display card to be switched;
if not, acquiring current brightness information;
acquiring a first data table, wherein the first data table is a relation table of the brightness of the first display card and the brightness of the second display card;
searching first target brightness information corresponding to the current brightness information in the first data table;
and responding to the starting command, executing a command for switching the display card, and adjusting the screen brightness to the brightness corresponding to the first target brightness information according to a conversion brightness algorithm of the second display card.
It will be appreciated by those skilled in the art that the architecture shown in fig. 3 is merely a block diagram of a portion of the architecture in connection with the present inventive arrangements and is not intended to limit the computer devices to which the present inventive arrangements are applicable.
When the computer equipment of the embodiment of the invention starts a game, if the display card is required to be switched, the corresponding first target brightness information is searched in the first data table according to the current brightness information, and after the display card is switched to the second display card, the screen brightness is adjusted to the brightness corresponding to the first target brightness information, so that the brightness corresponding to the first target brightness information is the same as the current brightness of the previous first display card, the screen brightness is not changed, and the problem that the brightness of screen display is different when the display card is switched is solved.
An embodiment of the present invention further provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements a method for controlling graphics card switching, specifically: receiving a starting command for starting a game program;
judging whether the starting command needs to switch the display card or not;
if yes, judging whether the conversion brightness algorithm of the current first display card is the same as the conversion brightness algorithm of the second display card to be switched;
if not, acquiring current brightness information;
acquiring a first data table, wherein the first data table is a relation table of the brightness of the first display card and the brightness of the second display card;
searching first target brightness information corresponding to the current brightness information in the first data table;
and responding to the starting command, executing a command for switching the display card, and adjusting the screen brightness to the brightness corresponding to the first target brightness information according to a conversion brightness algorithm of the second display card.
When the storage medium of the embodiment of the invention starts a game, if the display card needs to be switched, the corresponding first target brightness information is searched in the first data table according to the current brightness information, and after the display card is switched into the second display card, the screen brightness is adjusted to the brightness corresponding to the first target brightness information, so that the brightness corresponding to the first target brightness information is the same as the current brightness of the previous first display card, the screen brightness is not changed, and the problem that the brightness of screen display is different when the display card is switched is solved.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided by the present invention and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The foregoing description of the preferred embodiment of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (10)

1. The display card switching control method is characterized by comprising the following steps:
receiving a starting command for starting a game program;
judging whether the starting command needs to switch the display card or not;
if yes, judging whether the conversion brightness algorithm of the current first display card is the same as the conversion brightness algorithm of the second display card to be switched;
if not, acquiring current brightness information;
acquiring a first data table, wherein the first data table is a relation table of the brightness of the first display card and the brightness of the second display card;
searching first target brightness information corresponding to the current brightness information in the first data table;
and responding to the starting command, executing a command for switching the display card, and adjusting the screen brightness to the brightness corresponding to the first target brightness information according to a conversion brightness algorithm of the second display card.
2. The method for controlling graphics card switching according to claim 1, wherein the step of determining whether the current conversion brightness algorithm of the first graphics card is the same as the conversion brightness algorithm of the second graphics card to be switched comprises:
acquiring manufacturer information of a first display card and manufacturer information of a second display card;
judging whether the manufacturer information of the first display card and the manufacturer information of the second display card belong to the same manufacturer;
if the first display card belongs to the same manufacturer, judging that the conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card;
if the first display card and the second display card do not belong to the same manufacturer, the conversion brightness algorithm of the first display card is judged to be different from the conversion brightness algorithm of the second display card.
3. The method for controlling graphics card switching according to claim 1, wherein the step of determining whether the current conversion brightness algorithm of the first graphics card is the same as the conversion brightness algorithm of the second graphics card to be switched comprises:
sending a first request for acquiring attribute information of a first display card to a manufacturer of the first display card, wherein the attribute information of the first display card comprises a first type algorithm adopted by conversion brightness of the first display card;
receiving attribute information of the first display card sent by a manufacturer of the first display card;
sending a second request for acquiring attribute information of a second display card to a manufacturer of the second display card, wherein the attribute information of the second display card comprises a second type algorithm adopted by the conversion brightness of the second display card;
receiving attribute information of the second display card sent by a manufacturer of the second display card;
judging whether the first type algorithm and the second type algorithm are the same algorithm or not;
if the conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card, the conversion brightness algorithm of the first display card is judged to be the same as the conversion brightness algorithm of the second display card;
if the conversion brightness algorithm is not the same algorithm, the conversion brightness algorithm of the first display card is judged to be different from the conversion brightness algorithm of the second display card.
4. The method for controlling graphics card switching according to claim 1, wherein the step of acquiring the first data table comprises:
reading first hardware information of the first display card, wherein the first hardware information comprises a first key;
reading second hardware information of the second display card, wherein the second hardware information comprises a second key;
sending a request with the first key and the second key to a preset server, wherein the preset server stores the first data table and returns the first data table to the request with the first key and the second key;
and receiving a first data table returned by the preset server.
5. The method for controlling graphics card switching according to claim 1, wherein the step of determining whether the start command requires switching graphics cards comprises:
extracting a display card identifier in the starting command;
if the extracted display card identifier is the second identifier of the second display card, judging whether the currently used display card is the second display card or not;
if the display card is the second display card, the display card does not need to be switched;
and if the display card is not the second display card, the display card needs to be switched.
6. The method for controlling video card switching according to claim 1, comprising, before the step of acquiring current luminance information:
identifying whether the start command has brightness command information;
if not, generating a command for acquiring the current brightness information.
7. The method of claim 6, wherein after the step of identifying whether the start command has brightness command information, comprising:
if brightness command information exists, a first data table is obtained, wherein the first data table is a relation table of brightness of the first display card and brightness of the second display card;
searching second target brightness information corresponding to the brightness command information in the first data table;
and responding to the starting command, executing a command for switching the display card, and adjusting the screen brightness to the brightness corresponding to the second target brightness information according to a conversion brightness algorithm of the second display card.
8. A display card switching control device, the device comprising:
a first receiving module for receiving a start command for starting a game program;
the first judging module is used for judging whether the starting command needs to switch the display card or not;
the second judging module is used for judging whether the current conversion brightness algorithm of the first display card is the same as the conversion brightness algorithm of the second display card to be switched or not if yes;
the first acquisition module is used for acquiring current brightness information if not;
the second acquisition module is used for acquiring a first data table, wherein the first data table is a relation table of the brightness of the first display card and the brightness of the second display card;
the first searching module is used for searching first target brightness information corresponding to the current brightness information in the first data table;
the first processing module is used for responding to the starting command, executing the command of switching the display card, and adjusting the screen brightness to the brightness corresponding to the first target brightness information according to the conversion brightness algorithm of the second display card.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202310927239.2A 2023-07-27 2023-07-27 Display card switching control method and device, computer equipment and storage medium Active CN116650955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310927239.2A CN116650955B (en) 2023-07-27 2023-07-27 Display card switching control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310927239.2A CN116650955B (en) 2023-07-27 2023-07-27 Display card switching control method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116650955A true CN116650955A (en) 2023-08-29
CN116650955B CN116650955B (en) 2023-10-13

Family

ID=87724497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310927239.2A Active CN116650955B (en) 2023-07-27 2023-07-27 Display card switching control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116650955B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004102134A (en) * 2002-09-12 2004-04-02 Fuji Photo Film Co Ltd Image display apparatus
CN111753309A (en) * 2020-06-29 2020-10-09 西安易朴通讯技术有限公司 Display card switching method, server and storage medium
CN112435635A (en) * 2020-11-05 2021-03-02 联宝(合肥)电子科技有限公司 Brightness adjusting method and device and computer storage medium
CN112433768A (en) * 2020-11-05 2021-03-02 联宝(合肥)电子科技有限公司 Display card control method, equipment and computer storage medium
DE202021105474U1 (en) * 2021-10-08 2021-11-09 Evga Corporation Firmware update system for graphics cards after replacing the graphics card and during the quick start setting of the computer operating system
CN115237520A (en) * 2022-07-20 2022-10-25 深圳市芯盈科技有限公司 Method and system for optimizing performance of display card

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004102134A (en) * 2002-09-12 2004-04-02 Fuji Photo Film Co Ltd Image display apparatus
CN111753309A (en) * 2020-06-29 2020-10-09 西安易朴通讯技术有限公司 Display card switching method, server and storage medium
CN112435635A (en) * 2020-11-05 2021-03-02 联宝(合肥)电子科技有限公司 Brightness adjusting method and device and computer storage medium
CN112433768A (en) * 2020-11-05 2021-03-02 联宝(合肥)电子科技有限公司 Display card control method, equipment and computer storage medium
DE202021105474U1 (en) * 2021-10-08 2021-11-09 Evga Corporation Firmware update system for graphics cards after replacing the graphics card and during the quick start setting of the computer operating system
CN115237520A (en) * 2022-07-20 2022-10-25 深圳市芯盈科技有限公司 Method and system for optimizing performance of display card

Also Published As

Publication number Publication date
CN116650955B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
CN107832100B (en) APK plug-in loading method and terminal thereof
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN110795171B (en) Service data processing method, device, computer equipment and storage medium
CN113158110A (en) Data processing method and equipment
CN111399946A (en) Terminal application starting change control method and device, terminal and USIM
CN104268012B (en) A kind of image data processing method and processing device
CN111739136B (en) Rendering method, computer device, and storage medium
CN117255064B (en) Control method, device, equipment and medium of multifunctional credit and trauma integrated machine
CN116650955B (en) Display card switching control method and device, computer equipment and storage medium
CN102184375A (en) Management method and terminal of data in subscriber identity module (SIM) card
US20200081597A1 (en) Application program management method and apparatus
CN107329791A (en) Method, device and the computer-readable recording medium of application are installed in scanning
CN111510910A (en) Communication module frequency band setting method and device, computer equipment and storage medium
CN113132816B (en) Program switching method, terminal, system and storage medium
CN113992784A (en) Audio and video call method and device, computer equipment and storage medium
CN112783866A (en) Data reading method and device, computer equipment and storage medium
US20240037113A1 (en) Data management method and system for a security protection terminal, device and storage medium
CN113126741B (en) Mobile terminal frame rate control method, device, computer equipment and storage medium
CN112800123A (en) Data processing method, data processing device, computer equipment and storage medium
CN110677378B (en) Control method of MAC address, intelligent terminal and storage medium
CN113504879A (en) Data storage method and intelligent household appliance
CN112632032A (en) Data migration method and device, storage medium and terminal equipment
CN113992700B (en) Instruction analysis method, terminal and storage medium based on distributed network
CN111385358B (en) Synchronization method and device of session control object and server
CN117254886B (en) Cloud desktop data interaction method and device, computer equipment 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