Method and system for optimizing resource utilization of a computer system during in-game resource farming - Patents.com
By dynamically adjusting resource utilization based on gameplay states, the method optimizes computer system resources during in-game resource farming, allowing simultaneous execution of multiple games and other tasks without degrading performance.
Patent Information
- Application Number
- JP2021539001
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-01-02
- Filing Date
- 2019-12-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-12-28
AI Technical Summary
Existing methods for in-game resource farming consume significant computer resources, rendering computing devices unavailable for other tasks due to the need to run multiple instances of resource-intensive games, particularly on laptops and desktops.
A method and system that dynamically adjusts the resource utilization of a computer system by detecting gameplay states and switching between different gaming application modes to optimize resource usage, including techniques such as vCPU allocation, frame rate reduction, and audio muting, without restarting the gaming application or virtual machine environment.
This approach allows multiple gaming applications to run efficiently in resource farming mode while minimizing resource consumption, enabling concurrent use of the computing device for other tasks without impacting gameplay quality.
Smart Images

Figure 0007575382000001 
Figure 0007575382000002 
Figure 0007575382000003
Abstract
Description
[Technical field]
[0001] The present invention relates to gaming technology, and more particularly to a method, system and computer program product for optimizing resource utilization of a computer system during in-game resource farming. [Background technology]
[0002] For purposes of this invention, the terms "gold farming" or "resource farming" may be used interchangeably and refer to the act of collecting and selling virtual resources, virtual currency, experience points or goods in an online game to be traded or bartered for in-game currency or real money, respectively.
[0003] The steady growth of Massively Multiplayer Online Role Playing Games (MMORPGs) has contributed to the widespread practice of resource farming. Briefly described, resource farming is premised on the fact that some game players must spend a great deal of time to acquire virtual goods in online games, such as in-game currency, rare goods, experience points, powerful weapons, and other hard-to-obtain virtual artefacts, while such resources can be obtained through trading, purchase, or exchange with other game players. Resource farming describes the activity of collecting and selling virtual in-game resources to obtain real-world money. The term "resource farming" describes various types of repetitive actions or activities to collect valuable virtual resources or valuable virtual artifacts. Game players who are farming can sell valuable virtual resources or valuable virtual artifacts to other game players (e.g., game players who do not have the time or initiative to farm their own in-game resources), including in transactions for real money outside of the game.
[0004] Over time, resource farming has gone from being viewed as a deviant and undesirable gaming strategy to being an accepted and valuable part of the in-game economy. This is because it allows game players to level up or otherwise enhance their in-game characters by purchasing in-game resources from resource farmers, thereby increasing and maintaining interest in the game by avoiding the large amount of time that would otherwise need to be dedicated to acquiring (farming) resources for the game player himself. Some games still have an auto-play mode, in which the game player's character automatically battles and acquires in-game experience points and / or virtual resources or artifacts with little or no supervision from the game player. Serious gamers typically create many accounts and play games with the many accounts in the hope of finding some rare (and random) artifact that can then be aggregated from the multiple accounts associated with the game player into one primary account.
[0005] It has been discovered that a cross-operating system based virtual machine environment provides certain unexpected advantages for farming resources in a game: A cross-operating system based virtual machine environment is a system environment that allows an application developed for a first operating system (e.g., Android OS) to run on a machine with a second operating system (e.g., macOS or Windows operating systems) as the host operating system.
[0006] The immediate benefit of playing games in such an environment (e.g., the BlueStacks® AndroidOS emulator for computing devices) is that a player can launch an Android game within a virtual machine environment implemented on a computing device such as a desktop or laptop, put the game into autoplay or resource farming mode, continue other tasks on the same device, and periodically check the emulator or virtual machine environment to see the progress of the game. Doing this on a mobile device with AndroidOS consumes resources such as battery, network, CPU and memory, and prevents the mobile device from being used for other productive tasks. However, on a laptop computing device, a user can launch multiple instances of a game within multiple instances of the virtual machine environment and put each instance of the game into autoplay or resource farming mode, thereby allowing multiple instances of the game to run in farming or autoplay mode simultaneously, increasing the return per unit of real time. This is not possible on a mobile device because typical mobile devices lack the processing resources to run multiple instances of an Android game simultaneously.
[0007] Even if there is an option to run games in resource farming mode on non-mobile devices, it has been found that running multiple instances of resource-intensive games on a computing device, such as a laptop or desktop, can consume a significant portion of system resources, thereby rendering the computing device unable to simultaneously perform other computing tasks or other productivity related tasks or rendering the computing device wasted.
[0008] Therefore, there is a need for a solution that optimizes the utilization of computer system resources during in-game resource farming. Summary of the Invention
[0009] A method, system, and computer program product are provided for optimizing resource utilization of a computer system during farming of resources in a game.
[0010] In one embodiment, the invention includes a method for optimizing resource utilization of a computer system during farming of resources within a game. The method includes the steps of: (1) detecting a gameplay state associated with a running instance of a gaming application on a computer system; (2) selecting a gaming application mode from among a plurality of available gaming application modes, the selection of the gaming application mode being based on the detected gameplay state; and (3) executing the selected gaming application mode for subsequent execution of the gaming application on the computer system. If the detected gameplay state includes either a resource farming gameplay state or an auto gameplay state, the selected gaming application mode includes a first gaming application mode. If the detected gameplay state includes a non-resource farming gameplay state or an active gameplay state, the selected gaming application mode includes a second gaming application mode. The first gaming application mode may be more energy efficient or more computationally resource efficient or consume less computational resources than the second gaming application mode.
[0011] In one embodiment of the method, detecting the gameplay state is based on any of retrieved game settings, virtual machine environment settings, operating system settings, operating system emulator settings, received game player input, gameplay action(s), or gameplay results.
[0012] In a further embodiment, (1) each of the first gaming application mode and the second gaming application mode includes a discrete set of gaming application execution parameters, and (2) a first set of gaming application execution parameters corresponding to the first gaming application mode is different from a second set of gaming application execution parameters corresponding to the second gaming application mode.
[0013] In certain embodiments of the method, the first set of gaming application execution parameters enables execution of one or more resource optimization techniques for executing the instance of the gaming application that are not enabled by the second set of gaming application execution parameters, the resource optimization techniques including any of virtual central processing unit (vCPU) allocation, central processing unit (CPU) operation throttling, frame rate reduction, random access memory (RAM) reclaim, graphics scaling, graphics processing unit (GPU) switching, audio scaling, and / or audio muting.
[0014] In one embodiment of the method, selecting the gaming application mode from among the plurality of available gaming application modes is further based on determining whether the running instance of the gaming application requires switching between a resource farming gaming application mode and a non-resource farming gaming application mode without restarting the instance of the gaming application or restarting the virtual machine environment or operating system emulator in which the instance of the gaming application is running.
[0015] In a particular method embodiment, in the first gaming application mode, in response to detecting that the running instance of the gaming application has generated a thread having a particular thread name, (1) identify an independent audio loop corresponding to the running instance of the gaming application, and (2) reduce or mute the identified independent audio loop.
[0016] In a further method embodiment, in the first gaming application mode, if a particular sequence of application program interface (API) calls is identified within a particular process thread corresponding to the running instance of the gaming application, where the sequence of API calls corresponds to a graphics thread within a gaming engine for the running instance of the gaming application and does not correspond to a physics thread within the gaming engine, then a frame rate of the running instance of the gaming application is reduced.
[0017] In another method embodiment, in the first gaming application mode, if it is determined that the running instance of the gaming application is rendering full scene frames at regular intervals, frame data corresponding to the running instance of the gaming application is downscaled or discarded entirely without being stored.
[0018] In a particular method embodiment, if, in the first gaming application mode, it is determined that the running instance of the gaming application is rendering a scene frame only once, downscaling or discarding frame data corresponding to the running instance of the gaming application involves saving the frame data prior to downscaling or discarding.
[0019] The present invention further provides a system for optimizing resource utilization of a computer system during farming of resources in a game, the system including at least one memory and a processor. The system may be configured to: (1) detect a gameplay state associated with a running instance of a gaming application on the computer system; (2) select a gaming application mode from among a plurality of available gaming application modes, the selection of the gaming application mode being based on the detected gameplay state; and (3) execute the selected gaming application mode for subsequent execution of the gaming application on the computer system. In one system configuration, if the detected gameplay state includes either a resource farming gameplay state or an auto gameplay state, the selected gaming application mode includes a first gaming application mode. The system may be further configured to include a second gaming application mode if the detected gameplay state includes a non-resource farming gameplay state or an active gameplay state. Additionally, the system configuration may be such that the first gaming application mode is more energy efficient or computationally resource efficient or consumes less computational resources than the second gaming application mode.
[0020] In one embodiment, the system may be configured to detect the gameplay state based on any of retrieved game settings, virtual machine environment settings, operating system settings, operating system emulator settings, received game player input, gameplay action(s), or gameplay results.
[0021] In another embodiment, the system may be configured such that (1) each of the first gaming application mode and the second gaming application mode includes a discrete set of gaming application execution parameters, and (2) a first set of gaming application execution parameters corresponding to the first gaming application mode is different from a second set of gaming application execution parameters corresponding to the second gaming application mode.
[0022] In further embodiments, the system may be configured to enable execution of one or more resource optimization techniques for executing the instance of the gaming application where the first set of gaming application execution parameters is not enabled by the second set of gaming application execution parameters, the resource optimization techniques including any of virtual central processing unit (vCPU) allocation, central processing unit (CPU) operation throttling, frame rate reduction, random access memory (RAM) reclaim, graphics scaling, graphics processing unit (GPU) switching, audio scaling, and / or audio muting.
[0023] In certain embodiments, the system may be configured to select a gaming application mode from among the plurality of available gaming application modes based further on determining whether the running instance of the gaming application requires switching between a resource farming gaming application mode and a non-resource farming gaming application mode without restarting the instance of the gaming application or restarting the virtual machine environment or operating system emulator in which the instance of the gaming application is running.
[0024] The system may be configured, in response to detecting, in the first gaming application mode, that the running instance of the gaming application has spawned a thread having a particular thread name, to (1) identify an independent audio loop corresponding to the running instance of the gaming application, and (2) reduce or mute the identified independent audio loop.
[0025] In a particular system configuration, in the first gaming application mode, when a particular sequence of application program interface (API) calls is identified within a particular process thread corresponding to the running instance of the gaming application, where the sequence of API calls corresponds to a graphics thread within a gaming engine for the running instance of the gaming application and does not correspond to a physics thread within the gaming engine, the frame rate of the running instance of the gaming application is reduced.
[0026] In a further system configuration, in the first gaming application mode, if it is determined that the running instance of the gaming application is rendering full scene frames at periodic intervals, frame data corresponding to the running instance of the gaming application is downscaled or discarded entirely without being stored.
[0027] In a particular embodiment of the system, if, in the first gaming application mode, it is determined that the running instance of the gaming application is rendering a scene frame only once, downscaling or discarding frame data corresponding to the running instance of the gaming application involves saving the frame data prior to downscaling or discarding.
[0028] The present invention further provides a computer program product for optimizing resource utilization of a computer system during farming of resources in a game. The computer program product includes a non-transitory computer usable medium having computer readable program code embodied therein. The computer readable program code includes instructions for causing a processor to perform the steps of: (1) detecting a gameplay state associated with a running instance of a gaming application on a computer system; (2) selecting a gaming application mode from among a plurality of available gaming application modes, the selection of the gaming application mode being based on the detected gameplay state; and (3) executing the selected gaming application mode for subsequent execution of the gaming application on the computer system. If the detected gameplay state includes either a resource farming gameplay state or an auto gameplay state, the selected gaming application mode includes a first gaming application mode. If the detected gameplay state includes a non-resource farming gameplay state or an active gameplay state, the selected gaming application mode includes a second gaming application mode. The first gaming application mode may be more energy efficient or more computational resource efficient or consume less computational resources than the second gaming application mode. [Brief description of the drawings]
[0029] [Figure 1] 1 illustrates an exemplary computer-implemented architecture configured for execution of an application player configured to execute guest operating systems within a host operating system.
[0030] [Diagram 2] 1 illustrates an example of a computer system that can be used to optimize utilization of computer system resources within one or more running instances of a gaming application during farming of resources within a game.
[0031] [Diagram 3] 1 is a flow chart illustrating a method for selectively applying gaming application modes to a running instance of a gaming application based on detected game play conditions.
[0032] [Figure 4] 1 is a flow chart illustrating a method for selectively applying a resource farming gaming application mode to a running instance of a gaming application based on detected gameplay conditions.
[0033] [Diagram 5] 1 is a flow chart illustrating a method for selectively applying a non-resource farming gaming application mode to a running instance of a gaming application based on detected gameplay conditions.
[0034] [Figure 6] 1 is a flow chart illustrating a method of switching from a non-resource farming gameplay state to a resource farming gameplay state in a running instance of a gaming application.
[0035] [Figure 7] 1 is a flow chart illustrating a method of switching from a resource farming gameplay state to a non-resource farming gameplay state in a running instance of a gaming application.
[0036] [Figure 8]11 is a flow chart illustrating a method for selecting a set of resource optimization techniques for implementing a resource farming gaming application mode.
[0037] [Figure 9] FIG. 1 illustrates a resource optimization controller configured in accordance with the teachings of the present invention.
[0038] [Figure 10] 1 illustrates an exemplary configuration of a resource optimization controller implemented in a computer-implemented architecture configured to execute application software configured for a guest operating system within a host operating system.
[0039] [Figure 11] 1 illustrates an exemplary computer system in which the present invention may be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0040] The present invention allows for optimization of a computer system's resource usage during farming of resources within a game.
[0041] FIG. 1 illustrates an exemplary system of a computer-implemented architecture configured for execution of an application player, the application player configured to execute a guest operating system within a host operating system.
[0042] 1 is a computer system architecture configured to enable execution of software programs written for guest operating systems (e.g., virtual machine programs) within a host operating system 108 implemented on the computer system 100. The illustrated computer system architecture includes a guest operating system architecture 1060 (in this example, an Android architecture) and a host operating system architecture 108 (e.g., a Windows / OS X architecture).
[0043] 1 represents a virtual operating system that is launched by executing a host OS software application 106 configured to emulate a hardware architecture on which the guest OS 1060 can be implemented. The host OS software application 106 is also referred to as virtualization software or a hypervisor. Execution of the hypervisor 106 creates an instance of a virtual machine on which the guest operating system 1060, e.g., the Android OS, can run in a manner that is transparent to the end user.
[0044] The guest OS / AndroidOS 1060 may include a software stack including one or more of an application program layer 1062, an application framework layer 1064, a library layer 1066, a hardware abstraction layer (HAL) 1068, and a kernel layer 1070. The application layer 1062 includes various software applications. The application framework layer 1064 is used by developers to access framework application programming interfaces (APIs) and manage the basic functions of the mobile device, laptop, or tablet on which Android runs, such as allocating resources, switching between processes or programs, phone applications, knowing the physical location of the phone / laptop / tablet, etc. The application framework layer 1064 may include various managers, including an activity manager, a window manager, a content provider manager, a view system manager, a package manager, a telephony manager, a resource manager, a location manager, and a notification manager.
[0045] The library layer 1066 includes libraries written in, for example, C or C++, for use in various systems. The libraries instruct devices running Android how to handle different types of data and are exposed to Android developers via application frameworks. The libraries may include, for example, a surface manager, a media framework library, a SQLite library, an Open GL / ES library, a Free Type library, a WebKit library, an SGL library, an SSL library, and a libc library.
[0046] The hardware abstraction layer 1068 provides a standard way to create software hooks (code used to modify or extend the behavior of an operating system, application, or other software components by intercepting function calls or messages or events passed between software components) between the Android platform stack and the underlying hardware. The hardware abstraction layer 1068 also acts as an abstraction layer between the hardware and the rest of the software stack.
[0047] The Linux kernel layer 1070 contains Android's memory management, security settings, power management software and drivers, such as device drivers for hardware, file system access, network and inter-process communication.
[0048] Generally, in operation, instructions from an AndroidOS software application to a hardware device (e.g., an audio device or a display device) are routed to a corresponding hardware device driver in the kernel, which then controls the operation of the hardware device based on the received instructions. However, in the example shown in FIG. 1, the AndroidOS 1060 is launched from within the host OS 108, and therefore the AndroidOS 1060 runs as a process or processes within the host OS 108. Any attempt by an Android application in such a device to access hardware through a Linux driver is meaningless to the host OS 108, since such access is outside the scope of the host OS 108. Thus, data requests or instructions from the Android application are not sent from the HAL 1068 to the Linux kernel 1070 (as indicated by the communication link marked with a cross in FIG. 1), and the Linux kernel's hardware device driver 1072 cannot execute such requests or instructions that may result in an unintended state or malfunction of the hardware.
[0049] Instead, such requests or commands are routed to the host OS application player 1082 via one or more of the application framework layer 1064, the library layer 1066, the HAL 1068, and a data channel between the HAL 1068 and the host OS application player 1082. The data channel is configured to allow requests or commands from Android applications to be relayed to the host OS application player 1082.
[0050] The host OS application player 1082 is an application associated with the host OS 108, which is executed by the host OS processor at a user mode layer associated with the host OS (e.g., Windows OS / OS X). Applications of the guest operating system / Android operating system 1060 can access the host OS hardware device driver(s) 1084 through the host OS application player 1082, and can access the hardware and system data of the host OS 108 through the host OS hardware device driver(s) 1084.
[0051] As discussed above, the architecture of FIG. 1 may be included in any device, including, but not limited to, a workstation, a telephone, a desktop computer, a laptop, a notebook computer, a server, a handheld computer, a media playback device, a gaming system, a mobile computing device, or any other type and / or form of computing, telecommunications or media device capable of communicating.
[0052] The present invention implements an optimized resource utilization mode for execution of gaming application software executable in an autoplay mode or resource farming mode to enable a computing device to simultaneously execute one or more instances of the gaming application software in the optimized resource utilization mode executing on the computing device while ensuring sufficient data processing resource utilization to allow a user to simultaneously use the computing device for other data processing or productivity tasks.
[0053] The present invention implements this optimized resource utilization mode under the premise that when an instance of a gaming application is running in autoplay or resource farming mode, the game player running the instance of the gaming application is not overly (or at all) concerned with the fidelity or quality of the gameplay experience. Instead, the game player is concerned with two things: (1) that the gameplay character continues to progress in the game in autoplay or resource farming mode (based on the autoplay or resource farming features or controls built into the gaming application) and that the game player can periodically check the gameplay character's game progress; and (2) that each simultaneously running instance of the game software is executed in an efficient manner in terms of consumption of data processing resources (e.g., processor time and memory) to maximize the number of simultaneously running instances of the game that can be executed on the computing device and / or ensure that the computing device can be simultaneously used for non-gaming productivity tasks (e.g., browsing, email communication, word processing, multimedia tasks, etc.).
[0054] In accordance with the present invention, a computing device can run one or preferably multiple instances of one or more gaming application software in an energy-efficient and resource-efficient mode(s) ("resource farming mode(s)") in response to determining that the internal gameplay state of that instance of a gaming application is a gold farming / resource farming / autoplay gameplay state ("resource farming gameplay state").
[0055] Upon determining that an instance of a gaming application executing on a computing device is in a resource farming gameplay state, the computing device may be configured to commence or initiate further execution of the instance of the gaming application in a resource farming mode that includes applying, without limitation, one or more resource optimization techniques to the particular instance of the gaming application. It is understood that the resource optimization techniques applied are selected to reduce utilization of hardware resources by the particular instance of the gaming application on the computing device. In one embodiment of the present invention, a resource optimization technique applied to an instance of a gaming application executing in a resource farming gameplay state results in an allocation of hardware or processing resources (to that instance of the gaming application) that is different (and preferably less / more efficient) than a default hardware or processing resource utilization setting allocated by or associated with a default execution setting of the gaming application (or of that particular instance of the gaming application).
[0056] It will be appreciated that determining that an instance of a gaming application is in a resource farming gameplay state can be accomplished in a variety of ways. One is to make the determination based on querying or retrieving information from a running instance of a gaming application regarding whether a game player selected an autoplay or resource farming gameplay state pre-configured within the gaming application. Additionally, rule-based or machine learning-based analysis of gameplay actions or outcomes within an instance of a gaming application may be used to determine whether the gaming application is in a resource farming gameplay state.
[0057] Conversely, if it is determined that one or more instances of a gaming application are executing on the computing device in a non-resource farming (i.e., active) gameplay state, the computing device may be configured to execute that instance of the gaming application in a non-resource farming mode, where the non-resource farming mode involves allocating hardware or processing resources to the instance of the gaming application according to default execution settings for the gaming application (or for the particular instance of the gaming application).
[0058] It is again appreciated that determining that an instance of a gaming application is in a non-farming (or active) gameplay state can be accomplished in a variety of ways. One is to make the determination based on querying or retrieving information from the instance of the gaming application regarding whether a game player selected an active mode from among selectable gameplay modes pre-configured within the gaming application, or alternatively selected an autoplay mode or a resource farming mode. In another embodiment, rule-based or machine learning-based analysis of gameplay actions (e.g., particular game player inputs or actions or selections) or results (e.g., detected changes with respect to particular settings or gameplay states, display of particular screens or map areas, changes in scene rendering, changes in audio output, etc.) within the instance of the gaming application can be used to determine whether the gaming application is in a non-resource farming (i.e., active) gameplay state.
[0059] FIG. 3 is a flow chart illustrating a method for applying the above disclosure by selectively applying gaming application modes to a running instance of a gaming application based on detected game play conditions.
[0060] Step 302 includes detecting a gameplay state associated with an instance of a gaming application currently running or implemented on a computing device. In one embodiment, the gameplay state detected in step 302 may include one of: (1) a resource farming gameplay state, an autoplay gameplay state, or an inactive gameplay state; and (2) a non-resource farming gameplay state or an active gameplay state currently associated with the instance of the gaming application. The gameplay state may be detected based on retrieved game settings, virtual machine environment settings, operating system settings, operating system emulator settings, and / or received game player input. In a more specific embodiment, rule-based or machine learning-based analysis of gameplay actions (e.g., specific game player inputs or actions or selections) or outcomes (e.g., detected changes with respect to specific settings or gameplay states, display of specific screens or map areas, changes in scene rendering, changes in audio output, etc.) within the instance of the gaming application can be used to detect and / or identify a gameplay state, e.g., whether the gaming application is in a non-resource farming (i.e., active) gameplay state or a resource farming gameplay state.
[0061] Step 304 includes selecting a gaming application mode from among a plurality of available gaming application modes, the selection of a particular gaming application mode being based on the gameplay state detected in step 304. Each of the plurality of gaming application modes includes a defined set of gaming application execution parameters, the defined set including one or more hardware parameters, operating system parameters, application software parameters, application runtime environment parameters, and / or device driver parameters executable on a computer system on which an instance of the gaming application is executing to execute an instance, such as an instance of the gaming application. In one embodiment, each of the plurality of gaming application modes differs from the remaining gaming application modes with respect to one or more gaming application execution parameters in the defined set of gaming application execution parameters.
[0062] In one embodiment of the method of FIG. 3, the plurality of available gaming application modes includes at least a first resource farming gaming application mode and a second non-resource farming gaming application mode. In a particular embodiment, the resource farming gaming application mode is a more energy efficient and / or more computational resource efficient mode than the non-resource farming gaming application mode. In a further particular embodiment, a first set of gaming application execution parameters associated with the resource farming gaming application mode enables execution of an instance of a gaming application in a more energy and / or computational resource efficient mode as compared to a second set of gaming application execution parameters associated with the non-resource farming gaming application mode.
[0063] In a further embodiment, a first set of gaming application execution parameters associated with a resource farming gaming application mode is selected to enable or cause execution of one or more resource optimization techniques (for executing an instance of a gaming application) that are not performed or enabled by a second set of gaming application execution parameters associated with a non-resource farming gaming application mode. The first set of gaming application execution parameters may include, without limitation, parameters that result in the execution of one or more of vCPU allocation, CPU operation throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting.
[0064] Step 306 includes applying the selected gaming application mode to the running instance of the gaming application. In one embodiment of the method, if the gaming application mode selected in step 304 includes a resource farming gaming application mode, applying the resource farming gaming application mode to the running instance of the gaming application includes executing a set of gaming application execution parameters associated with the resource farming gaming application mode associated with the running instance of the gaming application. In a further particular embodiment of the method, if the gaming application mode selected in step 304 includes a resource farming gaming application mode, applying the resource farming gaming application mode to the running instance of the gaming application includes performing one or more of vCPU allocation, CPU operation throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting for purposes of running the instance of the gaming application.
[0065] In another embodiment of the method, if the gaming application mode selected in step 304 includes a non-resource farming gaming application mode, applying the non-resource farming gaming application mode to the running instance of the gaming application includes executing a set of gaming application execution parameters associated with the non-resource farming gaming application mode associated with the execution of the instance of the gaming application.
[0066] With respect to the method of Figure 3, it will be appreciated that if multiple instances of a gaming application are determined to be executing on a computing device in a resource farming gameplay state, the computing device may be configured to execute each such instance of the gaming application in a resource farming gaming application mode by applying the method steps of Figure 3. Similarly, if multiple instances of a gaming application are determined to be executing on a computing device in a non-resource farming gameplay state, the computing device may be configured to execute each such instance of the gaming application in a non-resource farming mode by applying the method steps of Figure 3.
[0067] FIG. 4 is a flow chart illustrating a method for selectively applying a resource farming gaming application mode to a running instance of a gaming application based on detected gameplay conditions.
[0068] Step 402 includes detecting a gameplay state associated with an instance of a gaming application currently running or implemented on a computing device. In one embodiment, the gameplay state detected in step 402 may include one of: (1) a resource farming gameplay state, an autoplay gameplay state, or an inactive gameplay state currently associated with the instance of the gaming application; and (2) a non-resource farming gameplay state or an active gameplay state. As with the method of FIG. 3, the gameplay state may be detected based on retrieved game settings, virtual machine environment settings, operating system settings, operating system emulator settings, and / or received game player input. In more specific embodiments, rule-based or machine learning-based analysis of gameplay actions (e.g., a particular game player's inputs or actions or selections) or outcomes (e.g., detected changes to a particular setting or gameplay state, the display of a particular screen or map area, changes in scene rendering, changes in audio output, etc.) within an instance of a gaming application can be used to detect and / or identify a gameplay state, e.g., whether the gaming application is in a non-resource farming (i.e., active) gameplay state or a resource farming gameplay state.
[0069] Step 404 includes responding to the detection of the resource farming gameplay state in step 402 by selecting a resource farming gaming application mode from among a plurality of available gaming application modes. Each of the plurality of gaming application modes includes a discrete set of gaming application execution parameters. The discrete set includes one or more hardware parameters, operating system parameters, application software parameters, application runtime environment parameters, and / or device driver parameters executable on a computer system on which an instance of the gaming application is executing to execute an instance, such as an instance of the gaming application. In one embodiment of the method of FIG. 4, the plurality of available gaming application modes includes at least a first resource farming gaming application mode and a second non-resource farming gaming application mode. In a particular embodiment, the resource farming gaming application mode is a mode that is more energy and / or computationally resource efficient than the non-resource farming gaming application mode. In a further particular embodiment, a first set of gaming application execution parameters associated with a resource farming gaming application mode enables execution of an instance of a gaming application in a more energy and / or computational resource efficient mode compared to a second set of gaming application execution parameters associated with a non-resource farming gaming application mode.
[0070] In a further embodiment, the first set of gaming application execution parameters associated with the resource farming gaming application mode is selected to enable or cause execution of one or more resource optimization techniques (for executing an instance of a gaming application) that are not performed or enabled by a second set of gaming application execution parameters associated with the non-resource farming gaming application mode. The resource optimization techniques may include, without limitation, one or more of vCPU allocation, CPU operation throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting.
[0071] Step 406 includes applying the selected resource farming gaming application mode to the running instance of the gaming application. In one embodiment of the method, step 406 includes applying a set of gaming application execution parameters associated with the selected resource farming gaming application mode to the running instance of the gaming application. In a more particular embodiment of method step 406, applying the resource farming gaming application mode to the running instance of the gaming application includes performing one or more of vCPU allocation, CPU operation throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting for purposes of running the instance of the gaming application.
[0072] With respect to the method of FIG. 4, it will be appreciated that if it is determined that multiple instances of a gaming application are running on a computing device in a resource farming gameplay state, the computing device may be configured to run each such instance of the gaming application in a resource farming mode by applying the method steps of FIG. 4.
[0073] FIG. 5 is a flow chart illustrating a method for selectively applying a non-resource farming gaming application mode to a running instance of a gaming application based on detected game play conditions.
[0074] Step 502 includes detecting a gameplay state associated with an instance of a gaming application currently running or implemented on a computing device. In one embodiment, the gameplay state detected in step 502 may include one of: (1) a resource farming gameplay state, an autoplay gameplay state, or an inactive gameplay state; and (2) a non-resource farming gameplay state or an active gameplay state. As with the methods of FIGS. 3 and 4, the gameplay state may be detected based on retrieved game settings, virtual machine environment settings, operating system settings, operating system emulator settings, and / or received game player input. In a more specific embodiment, rule-based or machine learning-based analysis of gameplay actions (e.g., specific gameplay inputs or actions or selections) or detected results (e.g., detected changes with respect to specific settings or gameplay states, display of specific screens or map regions, changes in scene rendering, changes in audio output, etc.) detected within the running instance of the gaming application can be used to detect and / or identify the gameplay state, e.g., whether the gaming application is in a non-resource farming (i.e., active) gameplay state or a resource farming gameplay state.
[0075] Step 504 includes responding to the detection of the non-resource farming gameplay state in step 502 by selecting a non-resource farming gaming application mode from among a plurality of available gaming application modes. Each of the plurality of gaming application modes includes a discrete set of gaming application execution parameters. The discrete set includes one or more hardware parameters, operating system parameters, application software parameters, application runtime environment parameters, and / or device driver parameters executable on a computer system on which an instance of the gaming application is executing. In one embodiment of the method of FIG. 5, the plurality of available gaming application modes includes at least a first resource farming gaming application mode and a second non-resource farming gaming application mode. In a particular embodiment, the non-resource farming gaming application mode is a mode that consumes more energy and / or consumes more computer resources compared to the resource farming gaming application mode. In a further particular embodiment, a first set of gaming application execution parameters associated with a non-resource farming gaming application mode enables execution of an instance of a gaming application in a mode that consumes more energy and / or more computer resources compared to a second set of gaming application execution parameters associated with a resource farming gaming application mode.
[0076] In a further embodiment, the second set of gaming application execution parameters associated with the non-resource farming gaming application mode is selected to omit or eliminate one or more resource optimization techniques (for executing an instance of a gaming application) implemented or enabled by the first set of gaming application execution parameters associated with the resource farming gaming application mode. The one or more omitted or eliminated resource optimization techniques may include, without limitation, any one or more of vCPU allocation, CPU operation throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting.
[0077] Step 506 includes applying the selected non-resource farming gaming application mode to the running instance of the gaming application. In one embodiment of the method, step 506 includes applying a set of gaming application execution parameters associated with the non-resource farming gaming application mode to the running instance of the gaming application for purposes of executing the instance of the gaming application. In a more particular embodiment of method step 506, applying the non-resource farming gaming application mode to the running instance of the gaming application includes omitting or eliminating one or more of vCPU allocation, CPU operation throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting while executing the instance of the gaming application.
[0078] With respect to the method of FIG. 5, if it is determined that multiple instances of a gaming application are running on a computing device in a non-resource farming gameplay state, the computing device may be configured to run each such instance of the gaming application in a non-resource farming mode by applying the method steps of FIG. 5.
[0079] In certain embodiments, the present invention enables switching from a first gaming application mode used to execute an instance of a gaming application to a second gaming application mode for further execution of the instance of the gaming application in response to detecting a change in gameplay state. For example, switching from the first gaming application mode to the second gaming application mode may be performed in response to a determination that gameplay within the executing instance of the gaming application has changed from (1) either a resource farming gameplay state, an autoplay gameplay state, or an inactive gameplay state to (2) either a non-resource farming gameplay state or an active gameplay state, or vice versa. In one embodiment, the first gaming application mode used to execute an instance of a gaming application may include one of a resource farming gaming application mode and a non-resource farming gaming application mode, and the second gaming application mode for executing the instance of the gaming application may include the other of a resource farming gaming application mode and a non-resource farming gaming application mode.
[0080] FIG. 6 is a flow chart illustrating a method of switching from a non-resource farming gameplay state to a resource farming gameplay state in a running instance of a gaming application.
[0081] Step 602 includes detecting a gameplay state switch event. In one embodiment, detecting a gameplay state switch event includes detecting a change in gameplay within a running instance of a gaming application, where the gameplay changes from either a resource farming gameplay state, an autoplay gameplay state, or an inactive gameplay state to either a non-resource farming gameplay state or an active gameplay state. In another embodiment, detecting a gameplay state switch event includes detecting a change in gameplay within a running instance of a gaming application, where the gameplay changes from either a non-resource farming gameplay state or an active gameplay state to either a resource farming gameplay state, an autoplay gameplay state, or an inactive gameplay state.
[0082] The change in gameplay state at step 602 may be detected based on retrieved game settings, virtual machine environment settings, operating system settings, operating system emulator settings, and / or received game player input(s). In a more particular embodiment, rule-based or machine learning-based analysis of gameplay actions (e.g., particular game player inputs or actions or selections) or outcomes (e.g., detected changes with respect to particular settings or gameplay states, display of particular screens or map areas, changes in scene rendering, changes in audio output, etc.) within an instance of a gaming application can be used to detect and / or identify gameplay states, e.g., whether the gaming application is in a non-resource farming (i.e., active) gameplay state or a resource farming gameplay state.
[0083] Step 604 includes responding to a determination that the detected gameplay state switch event includes switching a running instance of a gaming application from a non-resource farming gameplay state to a resource farming gameplay state by switching from a first gaming application mode in which the instance of a gaming application was previously executed to a second gaming application mode for continuing execution of the instance of the gaming application. In one embodiment of the method, the first gaming application mode in which the instance of the gaming application was previously executed includes a non-resource farming gaming application mode and the second gaming application mode for executing the instance of the gaming application includes a resource farming gaming application mode.
[0084] Each of the resource farming gaming application mode and the non-resource farming gaming application mode includes a discrete set of gaming application execution parameters, including one or more hardware parameters, operating system parameters, application software parameters, application runtime environment parameters, and / or device driver parameters executable for executing the instance of the gaming application on a computer system on which the instance of the gaming application is executing. In one embodiment of the method of FIG. 6, the resource farming gaming application mode is a more energy efficient and / or more computational resource efficient mode than the non-resource farming gaming application mode. In another embodiment of the method of FIG. 6, the non-resource farming gaming application mode is a more energy consuming and / or more computational resource consuming mode than the resource farming gaming application mode. In a further particular embodiment, a first set of gaming application execution parameters associated with a non-resource farming gaming application mode enables execution of an instance of a gaming application in a more energy consuming and / or more computational resource consuming mode compared to a second set of gaming application execution parameters associated with a resource farming gaming application mode (which enables execution of an instance of a gaming application in a more energy efficient and / or computational resource efficient mode).In a further embodiment, a second set of gaming application execution parameters associated with the resource farming gaming application mode is selected to enable or cause execution of one or more resource optimization techniques (for executing an instance of a gaming application) that are not performed or enabled by the first set of gaming application execution parameters associated with the non-resource farming gaming application mode, the resource optimization techniques including, without limitation, one or more of vCPU allocation, CPU operation throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting.
[0085] FIG. 7 is a flow chart illustrating a method for switching from a resource farming gameplay state to a non-resource farming gameplay state in a running instance of a gaming application.
[0086] Step 702 includes detecting a gameplay state switch event. In one embodiment, detecting a gameplay state switch event includes detecting a change in gameplay state within a running instance of a gaming application, where the gameplay state changes from either a resource farming gameplay state or an active gameplay state to a non-resource farming gameplay state, an autoplay gameplay state, or an inactive gameplay state. In another embodiment, detecting a gameplay state switch event includes detecting a change in gameplay state within a running instance of a gaming application, where the gameplay changes from either a non-resource farming gameplay state or an active gameplay state to either a resource farming gameplay state, an autoplay gameplay state, or an inactive gameplay state.
[0087] The change in gameplay state at step 702 may be detected based on the retrieved game settings, virtual machine environment settings, operating system settings, operating system emulator settings, and / or received game player input(s). In a more particular embodiment, rule-based or machine learning-based analysis of gameplay actions (e.g., a particular game player input or action or selection) or outcomes (e.g., detected changes in particular settings or gameplay states, display of particular screens or map areas, changes in scene rendering, changes in audio output, etc.) within an instance of a gaming application can be used to detect and / or identify changes in gameplay state, e.g., whether the gaming application has changed from a non-resource farming (or active) gameplay state to a resource farming (or inactive) gameplay state, or vice versa.
[0088] Step 704 includes responding if the detected gameplay state switch event includes switching an instance of a gaming application from a resource farming gameplay state to a non-resource farming gameplay state by switching from a first gaming application mode in which an instance of a gaming application was executing to a second gaming application mode for executing the instance of a gaming application. In one embodiment of the method, the first gaming application mode in which an instance of a gaming application was executing includes a resource farming gaming application mode and the second gaming application mode for executing the instance of a gaming application includes a non-resource farming gaming application mode.
[0089] Each of the resource farming gaming application mode and the non-resource farming gaming application mode includes a discrete set of gaming application execution parameters, including one or more hardware parameters, operating system parameters, application software parameters, application runtime environment parameters, and / or device driver parameters executable for executing the instance of the gaming application on a computer system on which the instance of the gaming application is executing. In one embodiment of the method of FIG. 7, the resource farming gaming application mode is a more energy efficient and / or more computational resource efficient mode than the non-resource farming gaming application mode. In another embodiment of the method of FIG. 7, the non-resource farming gaming application mode is a more energy consuming and / or more computational resource consuming mode than the resource farming gaming application mode. In a further particular embodiment, a first set of gaming application execution parameters associated with a resource farming gaming application mode enables execution of an instance of a gaming application in a more energy efficient and / or computational resource efficient mode compared to a second set of gaming application execution parameters associated with a non-resource farming gaming application mode (which enables execution of an instance of a gaming application in a mode that consumes more energy and / or consumes more computational resources).In a further embodiment, a first set of gaming application execution parameters associated with a resource farming gaming application mode is selected to enable or cause execution of one or more resource optimization techniques (for executing an instance of a gaming application) that are not performed or enabled by a second set of gaming application execution parameters associated with a non-resource farming gaming application mode, the resource optimization techniques including, without limitation, one or more of vCPU allocation, CPU operation throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting.
[0090] It is further disclosed that the actual resource utilization optimization achievable by selecting a resource farming gaming application mode (for executing an instance of a gaming application on a computing device) or by switching from a non-resource farming gaming application mode to a resource farming gaming application mode depends on whether the game player (or the applicable game settings or virtual machine environment / operating system emulator settings corresponding to the instance of the gaming application) (1) requires the ability to switch between resource farming gaming application mode and non-resource farming gaming application mode without restarting the instance of the gaming application or the virtual machine environment / operating system emulator in which the instance of the gaming application is executing, or (2) does not require the ability to switch between resource farming gaming application mode and non-resource farming gaming application mode without restarting the instance of the gaming application or the virtual machine environment / operating system emulator in which the instance of the gaming application is executing.
[0091] In particular, if a game player (or applicable game settings or virtual machine environment / operating system emulator settings corresponding to an instance of a gaming application) requires the ability to switch between a resource farming gaming application mode and a non-resource farming gaming application mode without restarting the instance of the gaming application or the virtual machine environment / operating system emulator in which the instance of the gaming application is running, then less resource utilization optimization may be achieved compared to instances in which this functionality is not required, because switching modes without restarting the instance of the gaming application / virtual machine environment / operating system emulator requires the saving and subsequent retrieval of sufficient game or gameplay state information defining one or more gameplay states associated with the running instance of the gaming application to enable switching from a resource utilization optimized mode to a non-resource utilization optimized or less optimized mode.
[0092] Thus, in one embodiment, the particular resource optimization techniques to be performed to run an instance of a gaming application in a resource farming gaming application mode may be selected based on a determination of whether a game player (or an applicable game setting or virtual machine environment / operating system emulator setting corresponding to the instance of the gaming application) requires the ability to switch between a resource farming gaming application mode and a non-resource farming gaming application mode without restarting the instance of the gaming application or restarting the virtual machine environment / operating system emulator in which the instance of the gaming application is running. If the ability to switch modes without restarting the gaming application instance / virtual machine environment / operating system emulator is required, a first set of resource optimization techniques may be performed. If the ability to switch modes without restarting the gaming application instance / virtual machine environment / operating system emulator is not required, a second set of resource optimization techniques may be performed. The first set of resource optimization techniques.
[0093] FIG. 8 is a flowchart illustrating a specific method for selecting a set of resource optimization techniques for executing a resource farming gaming application mode based on determining whether a running instance of a gaming application requires or includes the ability to switch between a resource farming gaming application mode and a non-resource farming application mode without restarting the instance of the gaming application.
[0094] Step 802 includes determining whether a running instance of a gaming application requires or includes the ability to switch between a resource farming gaming application mode and a non-resource farming gaming application mode without restarting the instance of the gaming application (or without restarting the virtual machine environment / operating system emulator in which the instance of the gaming application is running).
[0095] Step 804 includes selecting a set of resource optimization techniques for executing the resource farming gaming application mode, the selection of the set of resource optimization techniques being based on the determination in step 802 (i.e., whether the instance of the gaming application requires or includes the ability to switch between a resource farming gaming application mode and a non-resource farming gaming application mode without restarting the instance of the gaming application or without restarting the virtual machine environment / operating system emulator).
[0096] In one embodiment of the method of FIG. 8, if a game player (or applicable game settings or virtual machine environment / operating system emulator settings corresponding to an instance of a gaming application) requires the ability to switch between a resource farming gaming application mode and a non-resource farming gaming application mode without restarting the instance of the gaming application or the virtual machine environment / operating system emulator on which the instance of the gaming application is running, a corresponding first set of resource optimization techniques is selected in step 804, which enables a lower degree of resource utilization optimization than the degree of resource utilization optimization enabled by the second set of resource optimization techniques selectable in step 804 in instances where this functionality is not required.
[0097] In one embodiment, the second set of resource optimization techniques may implement one or more resource optimization techniques (for running an instance of a gaming application) that are not implemented in the first set of resource optimization techniques.
[0098] One or both of the first and second sets of resource optimization techniques may include one or more of vCPU allocation, CPU throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting.
[0099] In another embodiment, the second set of resource optimization techniques may implement one or more of the same resource optimization techniques (for running an instance of a gaming application) implemented in the first set of resource optimization techniques, but with different resource optimization parameters or settings.
[0100] In one embodiment of the invention, a computing device is configured to select between a first and a second set of resource optimization techniques for executing a resource farming gaming application mode for executing an instance of a gaming application, where the selection between the first and the second set of resource optimization techniques is made based on a determination of whether a game player (or an applicable game setting or virtual machine environment / operating system emulator setting corresponding to the instance of the gaming application) requires the ability to switch between a resource farming gaming application mode and a non-resource farming gaming application mode without restarting the instance of the gaming application or the virtual machine environment / operating system emulator in which the instance of the gaming application is executing. In certain embodiments, this determination may be based on retrieved game settings / virtual machine environment settings / operating system emulator settings or, alternatively, may be based on received game player input(s).
[0101] It is disclosed that because different games respond differently to the same resource optimization techniques (e.g., as a result of different internal game and / or coding mechanics), the resource optimization techniques applied to execute a resource farming gaming application mode for executing an instance of a gaming application may vary based on the particular gaming application. Further, it has been found that multiple gaming applications executing based on the same or similar gaming engines are likely to respond similarly to the same resource optimization techniques as a result of implementing similar internal game and / or coding mechanics.
[0102] In one embodiment of the present invention, a subset of resource optimization techniques may be selected from a larger set of resource optimization techniques for purposes of implementing a resource farming gaming application mode for running an instance of a gaming application based on a set of predefined selection rules, one or more game player inputs, DevOps inputs, SysAd inputs, or a combination of rule-based and input-based selections.
[0103] In one embodiment of the present invention, in order to select and apply resource optimization techniques for executing a resource farming gaming application mode for running an instance of a gaming application, one or more of the following may be performed: In response to detecting that the gaming application has created a thread having a particular thread name, the gaming application may determine to perform an independent audio loop, where the independent audio loop is identified (e.g., based on the thread name or a feature of the thread name) and can be reduced or muted for purposes of performing a resource farming gaming application mode. determine that a particular process thread is a graphics thread upon identifying a particular sequence of application program interface (API) calls within a particular process thread, where the sequence of API calls is related to a graphics thread within the gaming engine but is not related to a physics thread within the gaming engine, and may reduce the frame rate of the instance of the gaming application that spawned the thread without adversely affecting the internal gameplay state of the game. A particular sequence of API calls within a particular process thread may be identified to determine whether the gaming application draws full scenes at regular intervals or whether it draws a particular scene only once. If the gaming application draws full scenes at regular intervals, it may downscale or completely discard frame data without saving it and subsequently return to the game's non-resource farming gaming application mode. If the gaming application draws one or more scenes only once, then any downscaling or discarding of frame data must be accompanied by saving of such frame data in order to enable a later return to the game's non-resource farming gaming application mode. When identifying a particular sequence of API calls from an instance of a gaming application, it may determine whether only a subset of the API calls can be cached in the GPU or whether all of the API calls can be sent to the GPU cache. · In response to an analysis of the characteristics of the gaming application at install time, an additional determination may be made as to whether the gaming application data pre-bundles lower quality / low resolution data assets that can be rendered or invoked in a resource farming gaming application mode. For instances of a gaming application running in a resource farming gaming application mode, the type, number, and periodicity of queries to the operating system for available vCPU and RAM resources may be lower than when the gaming application is running in a non-resource farming gaming application mode.
[0104] In one embodiment of the invention, a computing device configured to perform one or more methods as described above may be configured to respond to a determination such as: determining that the instance of the gaming application is in a resource farming gameplay state by switching from a first gaming application mode in which the instance of the gaming application was executing to a second gaming application mode for execution of the instance of the gaming application, where the second gaming application mode is a resource farming gaming application mode that is more energy efficient and / or computationally resource efficient than the first gaming application mode. In embodiments, the second gaming application mode may perform one or more resource optimization techniques (for executing the instance of the gaming application) that were not performed in the first gaming application mode, including, without limitation, one or more of vCPU allocation, CPU throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting. a determination that the instance of the gaming application switches from a non-resource farming gameplay state to a resource farming gameplay state by switching from a first gaming application mode in which the instance of the gaming application was running in a non-resource farming gameplay state to a second gaming application mode for running the instance of the gaming application, the second gaming application mode being a resource farming gaming application mode that is more energy efficient and / or computationally resource efficient than the first gaming application mode. In embodiments, the second gaming application mode may perform one or more resource optimization techniques (for running the instance of the gaming application) that were not performed in the first gaming application mode, including, without limitation, vCPU allocation, CPU throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting. determining that an instance of a gaming application switches from a resource farming gameplay state to a non-resource farming gameplay state by switching from a first gaming application mode in which the instance of the gaming application was running in a resource farming gameplay state to a second gaming application mode for running the instance of the gaming application, the first gaming application mode being a resource farming gaming application mode that is more energy efficient and / or computationally resource efficient than the second gaming application mode; in embodiments, the first gaming application mode may perform one or more resource optimization techniques (for running the instance of the gaming application) that are not performed in the second gaming application mode, the resource optimization techniques including, without limitation, vCPU allocation, CPU throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting. determining that an instance of a gaming application switches from a resource farming gameplay state to a non-resource farming gameplay state by switching from a first gaming application mode in which the instance of the gaming application was running in a resource farming gameplay state to a second gaming application mode for running the instance of the gaming application, the first gaming application mode being a resource farming mode that is more energy efficient and / or computationally resource efficient than the second gaming application mode, the second gaming application mode including allocating hardware or processing resources to the instance of the gaming application according to default execution settings of the gaming application (or the particular instance of the gaming application); in an embodiment, the first gaming application mode may perform one or more resource optimization techniques (for running the instance of the gaming application) that are not performed in the second gaming application mode, the resource optimization techniques including, without limitation, vCPU allocation, CPU operation throttling, frame rate reduction, RAM reclaim, graphics scaling, GPU switching, audio scaling, and / or audio muting.
[0105] FIG. 9 illustrates a resource optimization controller 900 configured in accordance with the present disclosure. In a particular embodiment, the resource optimization controller 900 may include one of the resource optimization controllers illustrated in FIG. 2 and FIG. 9, respectively. In an embodiment, the resource optimization controller 900 may be configured to perform one or more of the methods or method steps described in connection with FIG. 3 through FIG. 8, respectively. The resource optimization controller 900 may include one or more of a gaming application instance interface controller 902, a game state detector 904, a gaming application mode selector 906, a game play state switch event detector 908, a gaming application switch function detector 910, and a resource optimization process selector 912.
[0106] The gaming application instance interface controller 902 is a processor-implemented controller that enables the resource optimization controller 902 to identify, discover, monitor, track, and / or communicate with each instance of a gaming application running on the computer system.
[0107] The game state detector 904 is a processor-implemented detector configured to detect a game play state associated with a running instance(s) of a gaming application. In one embodiment, the game state detector 904 is configured to perform any of steps 302, 402 or 502 of Figures 3-5, respectively.
[0108] The gaming application mode selector 906 is a processor-implemented selector configured to select and execute a gaming application mode from among a plurality of gaming application modes according to any of steps 304 to 306, 404 to 406, 504 to 506, 604 or 704 of Figures 3 to 7.
[0109] The gameplay state switch event detector 908 includes a processor-implemented detector configured to detect an instance of a gameplay state switch event as described in connection with steps 602 or 702 of Figures 6 and 7, respectively.
[0110] The gaming application switching functionality detector 910 includes a processor-implemented detector configured to detect whether a running gaming application instance requires or includes functionality for switching between a resource farming gaming application mode and a non-resource farming gaming application mode without restarting the gaming application instance or the virtual machine environment / operating system emulator in which the gaming application instance is running. In one embodiment, the gaming application switching functionality detector 910 is configured to perform step 802 of the method as described in connection with FIG.
[0111] The resource optimization process selector 912 is a processor-implemented selector configured to select and execute a set of resource optimization techniques for executing a resource gaming application mode in accordance with various methods of the present invention. In one embodiment, the resource optimization process selector 912 is configured to execute step 804 of the method of FIG.
[0112] FIG. 10 illustrates an exemplary configuration of a resource optimization controller executed in a computer-implemented architecture configured for execution of application software configured for guest operating systems within a host operating system.
[0113] 2, Figure 10 illustrates a computer system architecture configured to enable execution of software programs (e.g., virtual machine programs) written for a guest operating system 10060 on a host operating system 1008 implemented on a computer system 1000. The computer system architecture includes a guest operating system architecture 10060 (in this example, an Android architecture) and a host operating system architecture 1008 (e.g., a Windows / OS X architecture).
[0114] The guest OS architecture / Android architecture 10060 shown in FIG. 10 represents a virtual operating system launched by executing a host OS software application 1006 configured to emulate a hardware architecture on which the guest OS 10060 can run, which may be referred to as virtual software or a hypervisor. Execution of the hypervisor 1006 creates an instance of a virtual machine on which the guest operating system 10060, e.g., the Android OS, can run in a manner that is transparent to the end user. The guest OS / Android OS 10060 may include a software stack including one or more of an application program layer 10062, an application framework layer 10064, a library layer 10066, a hardware abstraction layer (HAL) 10068, and a kernel layer 10070. The application layer 10062 includes various software applications. The application framework layer 10064 is used by developers to access framework application programming interfaces (APIs) and manage the basic functions of the mobile device, laptop, or tablet on which Android runs, such as allocating resources, switching between processes or programs, phone applications, knowing the physical location of the phone / laptop / tablet, etc. The application framework layer 10064 can include various managers, including an activity manager, a window manager, a content provider manager, a view system manager, a package manager, a telephony manager, a resource manager, a location manager, and a notification manager.
[0115] The library layer 10066 includes libraries written in, for example, C or C++, for use in various systems. The libraries instruct devices running Android how to handle different types of data and are exposed to Android developers via application frameworks. The libraries may include, for example, a surface manager, a media framework library, a SQLite library, an Open GL / ES library, a Free Type library, a WebKit library, an SGL library, an SSL library, and a libc library.
[0116] The hardware abstraction layer 10068 provides a standard way to create software hooks (code used to modify or extend the behavior of an operating system, application, or other software components by intercepting function calls or messages or events passed between software components) between the Android platform stack and the underlying hardware. The hardware abstraction layer 1068 also acts as an abstraction layer between the hardware and the rest of the software stack.
[0117] The Linux kernel layer 10070 contains Android's memory management, security settings, power management software and drivers, such as device drivers for hardware, file system access, network and inter-process communication.
[0118] Typically, instructions from an AndroidOS software application to a hardware device (e.g., an audio device or a display device) are routed to a corresponding hardware device driver in the kernel, which then controls the operation of the hardware device based on the received instructions. However, in the example shown in FIG. 10, the AndroidOS 10060 is launched from within the host OS 1008, so the AndroidOS 10060 runs as a process or processes within the host OS 1008. Any attempt by an Android application in such a device to access the hardware through a Linux driver is meaningless to the host OS 1008, since such access is outside the scope of the host OS 1008. Thus, data requests or instructions from the Android application are not sent from the HAL 10068 to the Linux kernel 10070 (as indicated by the communication link marked with a cross in FIG. 10), and the Linux kernel's hardware device driver 10072 cannot execute such requests or instructions, which may result in an unintended state or malfunction of the hardware.
[0119] Instead, such requests or instructions are routed to the host OS application player 10082 via one or more of the application framework layer 10064, the library layer 10066, the HAL 10068, and a data channel between the HAL 10068 and the host OS application player 10082. The data channel is configured to allow requests or instructions from an Android application to be relayed to the host OS application player 10082.
[0120] The Host OS Application Player 10082 is an application associated with the Host OS 1008, which is executed by the Host OS processor at a user mode layer associated with the Host OS (e.g., Windows OS / OS X). Applications of the Guest Operating System / Android Operating System 10060 can access the Host OS Hardware Device Driver(s) 10084 through the Host OS Application Player 10082, and through the Host OS Hardware Device Driver(s) 10084, can access the hardware and system data of the Host OS 1008.
[0121] 10, a resource optimization controller 10086 is implemented within the computer system 1000, the resource optimization controller 10086 being configured to execute application software configured for the guest operating system 10060 within the host operating system 1008. In the embodiment of FIG. 10, the resource optimization controller 10086 is implemented in a host OS application player 10082 installed in the host OS 1008, and is thus arranged to receive function calls or messages or events passed from an executed instance of a gaming application (running within the stack of the virtual machine 1006) to the host OS hardware device driver 10084 and further to the underlying hardware 1004.The resource optimization controller 10086 in the host OS application player 10082 may be configured to perform any one or more (preferably all) of the above-described methods and features of the present invention, including (1) a method of executing an instance of a gaming application in a resource farming gaming application mode; (2) a method of switching from a non-resource farming gaming application mode to a resource farming gaming application mode for executing an instance of a gaming application; (3) a method of switching from a resource farming gaming application mode to a non-resource farming gaming application mode for executing an instance of a gaming application; and (4) a method of optimizing the consumption of computer resources during the execution of an instance of a gaming application. (5) a method for determining whether an instance of a gaming application is in a resource farming gameplay state or a non-resource farming gameplay state; (6) a method for selecting a resource optimization technique based on an identified need for the ability to switch between a resource farming gaming application mode and a non-resource farming gaming application mode without restarting the instance of the gaming application or the virtual machine environment / operating system emulator in which the instance of the gaming application is executing; and (7) a method for rule-based and / or input-based selection of a resource optimization technique for executing a resource farming gaming application mode for an executed instance of a gaming application.
[0122] FIG. 11 illustrates an exemplary computer system on which the present invention may be implemented.
[0123] The illustrated system includes a computer system 1102, which includes one or more processors 1104 and at least one memory 1106. The processor 1104 is configured to execute program instructions and may be a real or virtual processor. It is understood that the computer system 1102 does not suggest any limitation as to the scope of use or scope of functionality of the disclosed embodiments. The computer system 1102 may include, but is not limited to, one or more of a general purpose computer, a programmed microprocessor, a microcontroller, an integrated circuit, and other devices or arrangements of devices capable of performing steps constituting the methods of the present invention. Exemplary embodiments of the computer system 1102 according to the present invention may include one or more of a server, desktop, laptop, tablet, smartphone, mobile phone, mobile communication device, tablet, phablet, and personal digital assistant. In one embodiment of the present invention, the memory 1106 may store software for implementing various embodiments of the present invention. The computer system 1102 may have additional elements. For example, computer system 1102 may include one or more communications channels 1108, one or more input devices 1110, one or more output devices 1112, and storage 1114. An interconnection mechanism (not shown), such as a bus, controller, or network, interconnects the elements of computer system 1102. In various embodiments of the invention, operating system software (not shown) provides an operating environment for various software executing on computer system 1102 with processor 1104 and manages the various functions of the elements of computer system 1102.
[0124] The communication channel(s) 1108 enable communication over a communication medium to various other computing entities. The communication medium provides information, such as program instructions, or other data in the communication medium. The communication medium includes, but is not limited to, wired or wireless methods implemented on a transmission medium such as electrical, optical, RF, infrared, acoustic, microwave, Bluetooth, etc.
[0125] The input device(s) 1110 may include, but are not limited to, a touch screen, a keyboard, a mouse, a pen, a joystick, a trackball, a voice device, a scanning device, or any other device capable of providing input to the computer system 1102. In one embodiment of the invention, the input device(s) 1110 may be a sound card or similar device that accepts voice input in analog or digital form. The output device(s) 1112 may include, but are not limited to, a user interface on a CRT, LCD, LED display, or other display associated with any of the following: a server, a desktop, a laptop, a tablet, a smart phone, a mobile phone, a mobile communication device, a tablet, a phablet, and a personal digital assistant, a printer, a speaker, a CD / DVD writer, or other device that provides output from the computer system 1102.
[0126] Storage 1114 may include, but is not limited to, magnetic disks, magnetic tapes, CD-ROMs, CD-RWs, DVDs, any type of computer memory, magnetic stripes, smart cards, printed bar codes, or any other ephemeral or non-ephemeral media that can be used to store information and that can be accessed by computer system 1102. In various embodiments of the invention, storage 1114 may include program instructions for performing any of the disclosed embodiments.
[0127] In one embodiment of the invention, computer system 1102 is part of a distributed network or set of available cloud resources.
[0128] The present invention may be embodied in numerous ways, such as a system, method, or computer program product, such as a computer readable storage medium or a computer network over which program instructions may be communicated remotely.
[0129] The present invention may be suitably embodied as a computer program product for use with the computer system 1102. The methods disclosed herein are typically implemented as a computer program product, including a set of program instructions executed by the computer system 1102 or other similar device. The set of program instructions may be a series of computer readable codes. The series of computer readable codes may be stored on a tangible medium, such as a computer readable storage medium (storage 1114), for example, a diskette, CD-ROM, ROM, flash drive, or hard disk, or may be transmitted to the computer system 1102 through any of the tangible media, including but not limited to optical or analog communication channel(s) 1108, via a modem or other interface device. The implementation of the present invention as a computer program product may also be intangible, using wireless technologies, including but not limited to microwave, infrared, Bluetooth, or other transmission technologies. The instructions may be preloaded into the system, recorded on a storage medium, such as a CD-ROM, or available for downloading over a network, such as the Internet or a mobile phone network. The series of computer readable instructions may embodi all or part of the functionality previously disclosed herein.
[0130] Based on the above-described system and method embodiments, the present invention allows for optimizing the utilization of resources of a computer system during farming of resources within a game.
[0131] Although exemplary embodiments of the invention have been described and illustrated herein, it is understood that they are merely exemplary. Those skilled in the art will appreciate that various changes in form and detail may be made therein without departing from or impairing the spirit and scope of the invention as defined in the appended claims. Moreover, the invention illustratively disclosed herein can preferably be practiced in the absence of any element not specifically disclosed herein, and in certain specifically contemplated embodiments, is intended to be practiced in the absence of any element not specifically disclosed herein.
Claims
1. A method for optimizing resource utilization of a computer system during farming of in-game resources, which are virtual property that can be obtained within a game implemented by a gaming application, comprising: a system detecting a game-play state switching event associated with a running instance of a gaming application on a computer system, the detected game-play state switching event representing a change in game-play within the running instance of the gaming application, the change in game-play being a change in the game-play state of the running instance of the gaming application from a non-resource farming gameplay state to a resource farming gameplay state; in response to detecting an event that switches the state of the game being played, the system switches from executing a non-resource farming gaming application mode in the running instance of the gaming application to executing a resource farming gaming application mode in the running instance of the gaming application; execution of the resource farming gaming application mode is more energy efficient or consumes fewer computer resources than execution of the non-resource farming gaming application mode; executing the resource farming gaming application mode includes applying a first set of gaming application execution parameters to a running instance of the gaming application; executing the non-resource farming gaming application mode includes applying a second set of gaming application execution parameters to the running instance of the gaming application; the first set of gaming application execution parameters is selected to execute a set of resource optimization techniques that are not executed or enabled by the second set of gaming application execution parameters; the set of resource optimization techniques to be executed with the first set of gaming application execution parameters is selected based on a determination of whether a running instance of the gaming application needs to switch from the resource farming gaming application mode to the non-resource farming gaming application mode without restarting the instance of the gaming application or without restarting a virtual machine environment or operating system emulator in which the instance of the gaming application is executing; if the running instance of the gaming application determines that a switch is required from the resource farming gaming application mode to the non-resource farming gaming application mode without restarting the instance of the gaming application or without restarting a virtual machine environment or operating system emulator in which the instance of the gaming application is running, the set of resource optimization techniques executed with the first set of gaming application execution parameters is a first set of resource optimization techniques; if the running instance of the gaming application determines that a switch from the resource farming gaming application mode to the non-resource farming gaming application mode is possible that involves a restart of the instance of the gaming application or a restart of a virtual machine environment or operating system emulator in which the instance of the gaming application is running, the set of resource optimization techniques executed with the first set of gaming application execution parameters is a second set of resource optimization techniques; the first set of resource optimization techniques enables a degree of resource utilization optimization that is less than a degree of resource utilization optimization enabled by the second set of resource optimization techniques. method.
2. The resource optimization techniques performed on the first set of gaming application execution parameters include any of virtual central processing unit (vCPU) allocation, central processing unit (CPU) operation throttling, frame rate reduction, random access memory (RAM) reclaim, graphics scaling, graphics processing unit (GPU) switching, audio scaling, and / or audio muting. The method of claim 1.
3. In the resource farming gaming application mode, in response to detecting that the running instance of the gaming application has created a thread having a particular thread name, identifying an independent audio loop corresponding to the running instance of the gaming application; reducing or muting the identified independent audio loops; The method of claim 1.
4. in the resource farming gaming application mode, reducing a frame rate of the running instance of the gaming application if the method identifies a particular sequence of application program interface (API) calls within a particular process thread corresponding to the running instance of the gaming application, the sequence of API calls corresponding to a graphics thread within a gaming engine for the running instance of the gaming application and not corresponding to a physics thread within the gaming engine; The method of claim 1.
5. and if, in the resource farming gaming application mode, it is determined that the running instance of the gaming application is rendering full scene frames at periodic intervals, downscale or completely discard without storing frame data corresponding to the running instance of the gaming application. The method of claim 1.
6. and when, in the resource farming gaming application mode, it is determined that the running instance of the gaming application is rendering a scene frame only once, downscaling or discarding frame data corresponding to the running instance of the gaming application involves saving the frame data prior to downscaling or discarding. The method of claim 1.
7. A system for optimizing resource utilization of a computer system during farming of in-game resources, which are virtual property that can be obtained within a game realized by a gaming application, comprising at least one memory and a processor; detecting a game-play state switching event associated with a running instance of a gaming application on a computer system, the detected game-play state switching event representing a change in game-play within the running instance of the gaming application, the change in game-play being a change in the game-play state of the running instance of the gaming application from a non-resource farming gameplay state to a resource farming gameplay state; responsive to detecting an event that switches a state of the game being played, switching from a non-resource farming gaming application mode of execution in the running instance of the gaming application to a resource farming gaming application mode of execution in the running instance of the gaming application; execution of the resource farming gaming application mode is more energy efficient or consumes fewer computer resources than execution of the non-resource farming gaming application mode; executing the resource farming gaming application mode includes applying a first set of gaming application execution parameters to a running instance of the gaming application; executing the non-resource farming gaming application mode includes applying a second set of gaming application execution parameters to the running instance of the gaming application; the first set of gaming application execution parameters is selected to execute a set of resource optimization techniques that are not executed or enabled by the second set of gaming application execution parameters; the set of resource optimization techniques to be executed with the first set of gaming application execution parameters is selected based on a determination of whether a running instance of the gaming application needs to switch from the resource farming gaming application mode to the non-resource farming gaming application mode without restarting the instance of the gaming application or without restarting a virtual machine environment or operating system emulator in which the instance of the gaming application is executing; if the running instance of the gaming application determines that a switch is required from the resource farming gaming application mode to the non-resource farming gaming application mode without restarting the instance of the gaming application or without restarting a virtual machine environment or operating system emulator in which the instance of the gaming application is running, the set of resource optimization techniques executed with the first set of gaming application execution parameters is a first set of resource optimization techniques; if the running instance of the gaming application determines that a switch from the resource farming gaming application mode to the non-resource farming gaming application mode is possible that involves a restart of the instance of the gaming application or a restart of a virtual machine environment or operating system emulator in which the instance of the gaming application is running, the set of resource optimization techniques executed with the first set of gaming application execution parameters is a second set of resource optimization techniques; the first set of resource optimization techniques enables a degree of resource utilization optimization that is less than a degree of resource utilization optimization enabled by the second set of resource optimization techniques. system.
8. Detecting an event that switches the state of the game being played is based on any of retrieved game settings, virtual machine environment settings, operating system settings, operating system emulator settings, received game player input, gameplay action(s), or gameplay results. The system of claim 7.
9. The resource optimization techniques performed on the first set of gaming application execution parameters include any of virtual central processing unit (vCPU) allocation, central processing unit (CPU) operation throttling, frame rate reduction, random access memory (RAM) reclaim, graphics scaling, graphics processing unit (GPU) switching, audio scaling, and / or audio muting. The system of claim 7.
10. In the resource farming gaming application mode, in response to detecting that the running instance of the gaming application has created a thread having a particular thread name, identifying an independent audio loop corresponding to the running instance of the gaming application; reducing or muting the identified independent audio loops; The system of claim 7.
11. in the resource farming gaming application mode, reducing a frame rate of the running instance of the gaming application if the method identifies a particular sequence of application program interface (API) calls within a particular process thread corresponding to the running instance of the gaming application, the sequence of API calls corresponding to a graphics thread within a gaming engine for the running instance of the gaming application and not corresponding to a physics thread within the gaming engine; The system of claim 7.
12. and if, in the resource farming gaming application mode, it is determined that the running instance of the gaming application is rendering full scene frames at periodic intervals, downscale or completely discard without storing frame data corresponding to the running instance of the gaming application. The system of claim 7.
13. and when, in the resource farming gaming application mode, it is determined that the running instance of the gaming application is rendering a scene frame only once, downscaling or discarding frame data corresponding to the running instance of the gaming application involves saving the frame data prior to downscaling or discarding. The system of claim 7.
Citation Information
Patent Citations
Method and apparatus for using virtual machine technology for managing parallel communicating applications
US20080184229A1
Head-to-head and tournament play for enriched game play environment
US20160300450A1
Configuration setting method and device
US20170244809A1
Virtual network function performance monitoring
US20180173549A1
