Disclosed are “graphics overrides.” An override accepts a stream of graphics commands as produced by an application and then modifies the stream before it is rendered by the GPU. Different overrides perform different modifications. One override can modify a stream of graphics commands in response to another stream. Overrides can enforce conformity with a visual paradigm and, by being modified, can support a change to that paradigm without requiring the applications to change. Overrides can monitor the entire computing environment and improve the response to that environment of a particular application: For example, an override monitors frames as they are produced by an application. If the application cannot keep up with a fixed frame rate, then the override produces “synthetic” frames to take the place of missing frames. Overrides are not restricted to fixing existing problems. Rather, applications can be developed that depend upon the presence of overrides.
|
15. A method implemented by a computing device, the method comprising:
receiving a first full frame from an application executing on the computing device;
presenting the first full frame in a user interface of the computing device;
calculating a time at which a second full frame is to be presented;
creating a synthetic full frame based on the first full frame;
determining whether the second full frame is going to be received from the application prior to the calculated time; and
responsive to determining that the second full frame is going to be received prior to the calculated time, presenting the second full frame in the user interface; or
responsive to determining that the second full frame is not going to be received prior to the calculated time, presenting the synthetic full frame in the user interface.
1. On a computing device with a central processing unit and a graphics processing unit, a method for presenting graphical information, the method comprising:
receiving, by the central processing unit, a first application-produced frame produced by an application running on the computing device;
sending, by the central processing unit to the graphics processing unit, the first application-produced frame;
rendering, by the graphics processing unit, the first application-produced frame;
calculating, by the central processing unit, a time when a second frame produced by the application should be presented;
creating, by the central processing unit, a synthetic frame, the creating based, at least in part, on the calculated presentation time for the second frame, the creating further based, at least in part and at least indirectly, on the first application-produced frame;
determining whether a second application-produced frame configured for presenting at the calculated presentation time for the second frame will be received by the central processing unit by the calculated presentation time; and
if the second application-produced frame is not going to be received by the central processing unit by the calculated presentation time, then:
sending, by the central processing unit to the graphics processing unit, the synthetic frame; and
rendering, by the graphics processing unit, the synthetic frame;
if the second application-produced frame is going to be received by the central processing unit by the calculated presentation time, then:
sending, by the central processing unit to the graphics processing unit, the second application-produced frame; and
rendering, by the graphics processing unit, the second application-produced frame.
8. A computing device configured for presenting graphical information, the computing device comprising:
a central processing unit configured for:
receiving a first application-produced frame, the first application-produced frame comprising an entire frame for presentation;
sending, to a graphics processing unit, the first application produced frame;
calculating a time when a second frame should be presented;
creating a synthetic frame, the creating based, at least in part, on the calculated presentation time for the second frame, the creating further based, at least in part and at least indirectly, on the first application produced frame, the synthetic frame comprising an entire frame for presentation;
determining whether a second application-produced frame configured for presenting at the calculated presentation time for the second frame will be received by the central processing unit by the calculated presentation time; and
if the second application-produced frame is not going to be received by the central processing unit by the calculated presentation time, the second application-produced frame comprising an entire frame for presentation, then sending, to the graphics processing unit, the synthetic frame;
if the second application-produced frame is going to be received by the central processing unit by the calculated presentation time, then sending, to the graphics processing unit, the second application-produced frame; and
the graphics processing unit distinct from, but operatively connected to, the central processing unit, the graphics processing unit configured for:
receiving, from the central processing unit, the first application produced frame;
rendering the first application-produced frame; and
if the synthetic frame is received from the central processing unit, then rendering the synthetic frame;
if the second application-produced frame is received from the central processing unit, then rendering the second application-produced frame.
2. The method of
3. The method of
4. The method of
wherein the computing device comprises a touch-input device; and
wherein creating a synthetic frame is further based, at least in part, on a motion event received from the touch-input device.
5. The method of
wherein the computing device comprises a communications interface; and
wherein rendering the synthetic frame comprises transmitting, via the communications interface, a rendering of the synthetic frame.
6. The method of
wherein the computing device comprises a memory; and
wherein rendering the synthetic frame comprises writing a rendering of the synthetic frame to the memory.
7. The method of
9. The computing device of
10. The computing device method of
wherein the computing device comprises a touch-input device; and
wherein creating a synthetic frame is further based, at least in part, on a motion event received from the touch-input device.
11. The computing device of
wherein the computing device comprises a communications interface; and
wherein rendering the synthetic frame comprises transmitting, via the communications interface, a rendering of the synthetic frame.
12. The computing device of
wherein the computing device comprises a memory; and
wherein rendering the synthetic frame comprises writing a rendering of the synthetic frame to the memory.
13. The computing device of
14. The computing device of
16. The method of
17. The method of
18. The method of
19. The method of
20. The method of
|
The present application is related to U.S. Patent Applications (PCT/US13/71578 and PCT/US13/71913), filed on an even date herewith and incorporated by reference herein in their entireties.
The present disclosure is related generally to computer graphics processing and, more particularly, to displaying information on a computer screen.
In a modern computing device, applications, utilities, and the operating system all run on, and share the processing power of, a central processing unit (“CPU”).
(Note 1: Computing devices now commonly parse out their work among multiple processors. For clarity's sake, the present discussion uses the term “CPU” to cover all single- and multiple-processor computing architectures.)
(Note 2: The phrase “applications, utilities, and the operating system” is shorthand for the set of all entities that may present information to a computer screen. Distinctions among these entities are, for the most part, of little import to the present discussion. Therefore, for clarity's sake, all of these entities are all usually called “applications” from here on unless a particular distinction is being drawn.)
When an “application” needs to present visual information to a user of a computing device, rather than directly issuing commands to the hardware that controls a display screen of that device, the application writes a series of graphics commands. These commands are sent to a graphics processing unit (“GPU”) which interprets the commands and then draws on the display screen.
Because the applications, utilities, and the operating system running on the device may all send graphics commands to the GPU, conflicts among the commands may arise. As a simple example, an application may command that a window be opened in a portion of the screen in which the operating system wishes to draw a background image (or “wallpaper”). The GPU knows the presentation hierarchy established among the applications (i.e., which one's display information should be “on top” and should thus overwrite that of the others) and resolves any conflicts accordingly. In the present example, the application is on top, so its window occludes a portion of the background wallpaper displayed by the operating system. Instead of occlusion, the GPU can be commanded to merge disparate images to make, for example, an “upper” image semi-transparent so that a “lower” image can be seen through it.
While the appended claims set forth the features of the present techniques with particularity, these techniques, together with their objects and advantages, may be best understood from the following detailed description taken in conjunction with the accompanying drawings of which:
Turning to the drawings, wherein like reference numerals refer to like elements, techniques of the present disclosure are illustrated as being implemented in a suitable environment. The following description is based on embodiments of the claims and should not be taken as limiting the claims with regard to alternative embodiments that are not explicitly described herein.
Powerful as it is, the existing model in which applications send graphics commands to be implemented by a GPU presents significant limitations. A first limitation is based on what may be called the “too-many-authors” problem: In current open computing architectures, applications are developed by a disparate set of authors, and the applications are hosted by a computing device running an operating system and utilities written by yet other authors. It would be surprising if all of these authors together accidentally presented a unified visual scene. Existing GPUs are not intelligent enough to radically transform the visual information they are commanded to present, therefore if a designer of a computing device wishes to have all of the applications running on the device conform to a given visual paradigm, then one option would be to constrain the applications to use only a restricted set of graphics commands (a set that, for example, does not allow changing certain fixed parameters). Of course, this reduces the flexibility of the developed applications, and that could be annoying to authors and to users alike. Also, because there are so many different applications controlled by no single authority, it may become essentially impossible to update all of the applications when the visual paradigm is changed.
A second, and more reasonable, response to the too-many-authors problem is to allow the authors the use of the full set of graphics commands but to publish guidelines for implementing the visual paradigm. Often, however, application authors fail to follow the guidelines, either through a misunderstanding or in order to achieve an effect not allowed for by the guidelines. And, as with the first option, there may be no feasible update path when the paradigm shifts.
A second limitation posed by the application-to-GPU model may be called the “too many externalities” problem: It is very difficult to draft an application that can account for everything in the computing environment outside of the application itself that may be running concurrently on the computing device, especially as that “everything” may include applications and other software written by the disparate set of authors mentioned above. When computing resources are in high demand, a given application may begin to fail or to operate in an unanticipated fashion. As the computing environment changes with the addition of more and different applications, it becomes unrealistic to assume that all of the applications are written in such a manner that they can handle the strain. Because of the too-many-authors problem, it is also unrealistic to assume that these applications can all be upgraded as needed whenever the computing environment changes.
To address these and other limitations of the application-to-GPU model, the present disclosure introduces the concept of a “graphics override.” The override accepts a stream of graphics commands as produced by an application and then modifies the stream before it is rendered by the GPU.
Generally speaking, the earliest overrides are implemented as code (or as parameters for a more generic code) to run on the CPU. In the future, it is expected that some overrides will be hosted directly by the GPU.
Different overrides perform different modifications. As a simple example, one override can review all of the incoming graphics commands from all applications and other software, find the commands that call for text to be displayed, and modify those commands so that they conform to a standard (e.g., they all use the same font and contrast).
Overrides can be very general or very specific in their focus. One override can modify a stream of graphics commands in response to another stream. Overrides can enforce conformity with a visual paradigm and, by being modified, can support a change to that paradigm without requiring the applications to change. Overrides can monitor the entire computing environment and improve the response to that environment of a particular application. In an example explained in detail below, an application is supposed to produce frames at a fixed rate. An override monitors the frames as they are produced by the application. If the application cannot keep up with the fixed rate, then the override produces “synthetic” frames to take the place of missing frames. Thus, the overrides prevents the application from producing jerky output when the load on the CPU is heavy.
Overrides are not restricted to fixing existing problems. Rather, applications can be developed that depend upon the presence of overrides. In another example detailed below, overrides support “A/B testing” of a new software product. A product is sent to two sets of users. Each set is also given a particular override. The first set of users experiences the product as modified by a first override, and the second set experiences the same product but with a second override in place. User-response data are gathered to see which override is preferred. The “winning” override is then incorporated into the release version of the product. Future overrides can be sent to further modify the user experience, either to support further testing or to implement an altered experience.
To understand these concepts more fully, first consider the representative computing device 100 of
The CPU 102 of the device 100 includes one or more processors (i.e., any of microprocessors, controllers, and the like) or a processor and memory system which processes computer-executable instructions to control the operation of the device 100. The device 100 can be implemented with a combination of software, hardware, firmware, and fixed-logic circuitry implemented in connection with processing and control circuits, generally identified at 104. Although not shown, the device 100 can include a system bus or data transfer system that couples the various components within the device 100. A system bus can include any combination of different bus structures, such as a memory bus or memory controller, a peripheral bus, a universal serial bus, and a processor or local bus that utilizes any of a variety of bus architectures.
The computing device 100 also includes one or more memory devices 106 that enable data storage, examples of which include random-access memory, non-volatile memory (e.g., read-only memory, flash memory, EPROM, and EEPROM), and a disk storage device. A disk storage device may be implemented as any type of magnetic or optical storage device, such as a hard disk drive, a recordable or rewriteable disc, any type of a digital versatile disc, and the like. The device 100 may also include a mass-storage media device.
The memory system 106 provides data storage mechanisms to store device data 114, other types of information and data, and various device applications 112. An operating system 108 can be maintained as software instructions within the memory 106 and executed by the CPU 102. The device applications 112 may also include a device manager, such as any form of a control application or software application. The utilities 110 may include a signal-processing and control module, code that is native to a particular component of the device 100, a hardware-abstraction layer for a particular component, and so on.
The computing device 100 also includes an audio-processing system 116 that processes audio data and controls an audio system 118 (which may include, for example, speakers). A GPU 120 processes graphics commands and visual data and controls a display system 122 that can include, for example, a display screen. The audio system 118 and the display system 122 may include any devices that process, display, or otherwise render audio, video, display, or image data. Display data and audio signals can be communicated to an audio component or to a display component via a radio-frequency link, S-video link, High-Definition Multimedia Interface, composite-video link, component-video link, Digital Video Interface, analog audio connection, or other similar communication link, represented by the media-data ports 124. In some implementations (e.g., a set-top box which drives a television monitor), the audio system 118 and the display system 122 are components external to the device 100. Alternatively (e.g., in a cellular telephone), these systems 118, 122 are integrated components of the device 100.
The computing device 100 can include a communications interface which includes communication transceivers 126 that enable wired or wireless communication. Example transceivers 126 include Wireless Personal Area Network radios compliant with various IEEE 802.15 standards, Wireless Local Area Network radios compliant with any of the various IEEE 802.11 standards, Wireless Wide Area Network cellular radios compliant with 3GPP standards, Wireless Metropolitan Area Network radios compliant with various IEEE 802.16 standards, and wired Local Area Network Ethernet transceivers.
The computing device 100 may also include one or more data-input ports 128 via which any type of data, media content, or inputs can be received, such as user-selectable inputs (e.g., from a keyboard, from a touch-sensitive input screen, or from another user-input device), messages, music, television content, recorded video content, and any other type of audio, video, or image data received from any content or data source. The data-input ports 128 may include USB ports, coaxial-cable ports, and other serial or parallel connectors (including internal connectors) for flash memory, storage disks, and the like. These data-input ports 128 may be used to couple the device 100 to components, peripherals, or accessories such as microphones and cameras.
Before considering detailed techniques for using overrides (see the discussion below accompanying
In
Next consider the utility 110. It produces its own stream of graphics commands 200b. However, before those commands 200b get to the GPU 120, they are intercepted by the CPU-hosted override 202. That override 202 examines and amends its incoming stream 200b. It then sends an amended stream 200c to the GPU 120 which processes the amended stream 200c just as it would process any other stream of graphics commands (paying attention, of course, to the source and context of that stream).
Finally, the application 112 produces its stream of graphics commands 200d which are dutifully sent to the GPU 120. Before implementing these commands 200d, however, the GPU-hosted override 204 intercepts them and modifies them to produce the amended stream 200e. This amended stream 200e is then processed within the GPU 120. (Note that most current GPUs cannot host overrides such as 204. However, as GPUs become more powerful and flexible, it is anticipated that this will become a useful adjunct to CPU-hosted overrides like 202.)
Note that the assignment of the three techniques in
With this general background in mind, turn to
The method begins at step 300 where a stream of graphics commands 200b is produced as output by an source application 108, 110, 112. In some embodiments, the source 108, 110, 112 is not aware of the fact that its output is going to an override. In contrast with this, the discussion accompanying
In optional step 302, a second stream of graphics commands is received. This step (along with optional step 306 discussed below) emphasizes that the relation between sources 108, 110, 112 and overrides need not be one-to-one: A single override may accept graphics commands from multiple sources 108, 110, 112.
In step 304, the override 202 is applied to its input stream of graphics commands 200b and produces an amended output stream of graphics commands 200c.
The override 202 is a code instance separate from the source 108, 110, 112 of the stream of graphics commands 200b. Although separate, in some embodiments, the override 202 can be given full access to information about the internal status of the source 108, 110, 112 and about the context in which that source 108, 110, 112 is running (see the example of
In general, an override 202 can be developed to perform any type of amendment to the input stream 200b, including adding, deleting, modifying, and re-arranging graphics commands. The amendment may simply change a single parameter in a single graphics command as, for example, when the input “stream” 200b has a single command to draw a blue box, and the amended output stream 200c has a single command to draw a red box. Or the override 202 can change all text commands so that the output 200c (and potentially the output from all sources 108, 110, 112) has a consistent font or other appearance parameter.
In some cases, the output stream 200c stream may be null, that is, the override 202 cancels, at least for a time, the visual output of the source 108, 110, 112.
The processing performed by a given override 202 can be very simple, as shown by the examples given above, or very complex. For example, an override 202 may receive as input a static image 200b and change the image's perspective (e.g., tilt or scale it) or even add motion to the image 200b to produce a video output 200c. A sophisticated override 202 may generate, from the input graphics command stream 200b, a scene graph (as known in the art). The scene graph may then be modified, and the output stream of graphics commands 200c may then be created directly from the modified scene graph and, thus, only indirectly from the input stream of graphics commands 200b. Although creating and interpreting a scene graph requires a good deal of processing power, it is a good option for some overrides 202 because the override 202 can then apply existing graphics tools (e.g., an element identifier, shader, properties module, or physics engine) to the created scene graph to produce sophisticated effects. The override 202 may be implemented as a set of instructions or rules that take account of the current context and of past developments (i.e., the override 202 can have a memory). The rules of the override 202 may even specify when to invoke itself or another override.
In optional step 306, the override 202 is applied, at least in part, to the second input stream (see step 302) to produce a second output stream. Note that this technique can be applied to allow the override 202 to coordinate among multiple instances of the same, or different, sources 108, 110, 112. For example, multiple players of a game may each run a separate instance of a game application 112. The override 202 receives the output graphics streams of all of the game-application instances, harmonizes them, and then either produces a separate output graphics stream 200c for each user, or a single output stream 200c for all the users (i.e., the first and second output streams 200c of steps 304 and 306 may be the same stream 200c, or the output streams 200c may each be based on the totality of the input streams 200b). In another example, an override 202 can accept the outputs of multiple applications 112 and modify those outputs so that they fit into a unified user interface, perhaps by tiling the separate inputs or by blending them together.
The output streams 200c produced by the override 202 are sent in step 308 to the GPU 120. The streams 200c may be identified to the GPU 120 as produced by their ultimate sources 108, 110, 112 or as produced by the override 202 itself (As discussed above, the GPU 120 uses this source information for resolving conflicts among graphics commands.)
The GPU 120, which in the method of
It is anticipated that, in particular situations, hosting an override on the GPU 120 will have certain advantages over hosting a similar override on the CPU 102. Different GPUs support different features and have different strengths and weaknesses, so an override tailored to a particular GPU architecture may be more efficient than a CPU-hosted override. In a computing architecture where multiple CPUs provide input to a single GPU, the GPU may be the best place to coordinate a unified display paradigm.
In step 500 of
As steps 500 through 504 are performed (perhaps repeatedly for frame after frame), an override 202 watches over this process. In step 506, the override 202 calculates (or otherwise determines) the time when a next frame needs to be presented. (In a very simple example, this would be the frame time of the next frame, based solely on the frame time of the first frame and the known frame rate. In other embodiments, the override 202 may be working further ahead in the anticipated sequence of frames.)
Step 508 is, in some situations, technically optional. In this step, the override 202 produces its own frame to be displayed at the next frame time. There are several possible procedures for producing such a “synthetic” frame. In a sophisticated example, the override 202 could examine the past few application-produced frames, note any consistent movement or other change in that short sequence, and then produce the synthetic frame by predicting a continuation of that movement into the next frame time. While the motion prediction may turn out to be incorrect, the viewed result would, in some situations, not be as jarring as simply repeating the last application-produced frame. With even more sophistication, the override 202 could gather further information from the hosting device 100 such as, for example, user-input data, and produce a scene graph based on the gathered information as well as on the previously received application-produced frames. From the scene graph, the override 202 could predict the visual effects that the application 112 is trying to produce. The override 202 could then produce the synthetic frame accordingly.
The override 202 can use information beyond the previously received application-generated frames when creating the synthetic frame. As one example, the override 202 can monitor user inputs to the computing device 100. If a user moves the computing device 100 away from himself (as detected by, say, an accelerometer), then the override 202 can create a synthetic frame that is a zoomed-out perspective of the previous application-produced frame. In another example, if the user touches a position on a touch-sensitive display screen, then the override 202 can shift the viewer's point-of-view based on that touch (or on a more elaborate gesture). (This can be enabled, for example, when the input stream of graphics commands 200b includes enough information to draw a scene larger than that currently displayed or includes enough information for the override 202 to create a scene graph of a fully three-dimensional scene.) In sum, the override 202 can apply user-input information independently of mediation by the source application 112.
In step 510, the override 202, as it watches over the stream of application-produced frames, decides whether or not the application 112 is going to produce the next frame in time (an analysis based, in part, on the known frame rate). If it does, then everything is well, and the synthetic frame produced in step 508 is discarded. (Another procedure would be to only create the synthetic frame in step 508 if step 510 determines that the synthetic frame is needed. That is why step 508 is technically optional.)
If, on the other hand, the next application-produced frame is not available in time, then in step 512 of
This method is illustrated in
The process of
Finally,
For more specific details of how overrides can assist in A/B testing, turn to
Returning to
Steps 700 and 702 are repeated as steps 704 and 706 but with a different override (the “B” version that, for example, turns the backgrounds behind all text messages produced by the application 112 into a shade of red) and, possibly, with a different set of end-user devices. This is illustrated at the first time increment of
The user responses to the “A” and “B” versions are compared to see which version is “better” in some sense (more popular, easier to use, maybe more efficient of computing resources). This is shown by 904 of
In optional step 708, the testing continues to refine the outcome by sending new overrides that embody new choices. In the case of
When testing is complete, and a final choice is selected for implementation, that implementation may be coded into the application 112 itself or, per optional step 710, the final implementation may be left as an override shipped with the application 112. In
In view of the many possible embodiments to which the principles of the present discussion may be applied, it should be recognized that the embodiments described herein with respect to the drawing figures are meant to be illustrative only and should not be taken as limiting the scope of the claims. Therefore, the techniques as described herein contemplate all such embodiments as may come within the scope of the following claims and equivalents thereof.
Elmieh, Baback, Ritts, James Paul, Lock, David
Patent | Priority | Assignee | Title |
9137320, | Dec 18 2012 | Google Technology Holdings LLC | Methods and systems for overriding graphics commands |
9214005, | Dec 18 2012 | Google Technology Holdings LLC | Methods and systems for overriding graphics commands |
Patent | Priority | Assignee | Title |
7095416, | Sep 22 2003 | Microsoft Technology Licensing, LLC | Facilitating performance analysis for processing |
8175121, | Dec 28 2006 | MAXELL HOLDINGS, LTD ; MAXELL, LTD | Image processor and image display apparatus comprising the same |
8228338, | Nov 03 2006 | Nvidia Corporation | Hardware override of application programming interface programmed state |
8724704, | Feb 17 2010 | Samsung Electronics Co., Ltd. | Apparatus and method for motion estimation and image processing apparatus |
8766984, | Aug 20 2010 | Qualcomm Incorporated | Graphics rendering methods for satisfying minimum frame rate requirements |
20020150123, | |||
20040179262, | |||
20050200627, | |||
20090128574, | |||
20100013842, | |||
20110018884, | |||
20120081376, | |||
20120105452, | |||
20140071141, | |||
20140168239, | |||
20140173028, | |||
WO2007003340, | |||
WO2014099275, | |||
WO2014099277, | |||
WO2014099301, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Dec 13 2012 | ELMIEH, BABACK | Motorola Mobility LLC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 029489 | /0989 | |
Dec 13 2012 | RITTS, JAMES PAUL | Motorola Mobility LLC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 029489 | /0989 | |
Dec 18 2012 | Google Technology Holdings LLC | (assignment on the face of the patent) | / | |||
Dec 18 2012 | LOCK, DAVID | Motorola Mobility LLC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 029489 | /0989 | |
Oct 28 2014 | Motorola Mobility LLC | Google Technology Holdings LLC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 034458 | /0001 |
Date | Maintenance Fee Events |
Sep 17 2018 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Sep 19 2022 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Date | Maintenance Schedule |
Mar 17 2018 | 4 years fee payment window open |
Sep 17 2018 | 6 months grace period start (w surcharge) |
Mar 17 2019 | patent expiry (for year 4) |
Mar 17 2021 | 2 years to revive unintentionally abandoned end. (for year 4) |
Mar 17 2022 | 8 years fee payment window open |
Sep 17 2022 | 6 months grace period start (w surcharge) |
Mar 17 2023 | patent expiry (for year 8) |
Mar 17 2025 | 2 years to revive unintentionally abandoned end. (for year 8) |
Mar 17 2026 | 12 years fee payment window open |
Sep 17 2026 | 6 months grace period start (w surcharge) |
Mar 17 2027 | patent expiry (for year 12) |
Mar 17 2029 | 2 years to revive unintentionally abandoned end. (for year 12) |