×

Methods and system for artifically and dynamically limiting the display resolution of an application

  • US 9,830,889 B2
  • Filed: 12/31/2009
  • Issued: 11/28/2017
  • Est. Priority Date: 12/31/2009
  • Status: Active Grant
First Claim
Patent Images

1. A method for limiting a display resolution of an application executing in a discrete graphics processing unit (GPU) in a computing device, the method comprising:

  • in response to an initialization of the application with graphical output generated by the discrete GPU, referencing a profile corresponding to the application from a plurality of profiles corresponding to a plurality of applications to determine a memory usage required by the graphical output of the application;

    querying a memory of the discrete GPU to determine a size of a frame buffer of the discrete GPU;

    calculating, based on the memory usage, a maximum resolution for graphical output of the application generated by the discrete GPU to prevent graphics resources from being transferred to and be stored in a main memory of the computing device, wherein the memory usage includes storage space for graphics resources that comprise a plurality of graphical textures, wherein the memory usage does not exceed the size of the frame buffer;

    filtering a first plurality of display resolutions to remove display resolutions that would cause the memory usage of the application to exceed the size of the frame buffer;

    caching the filtered first plurality of display resolutions in a display driver corresponding to a display device of the computing device;

    forcing a first display re-enumeration of the display driver in response to an API call from the application while executing the application in the computing device to an operating system of the computing device to receive a list of resolutions supported by the display device;

    in response to the first display re-enumeration, replacing the list of resolutions supported by the display device with the filtered first plurality of display resolutions that does not exceed the maximum resolution; and

    displaying graphical output corresponding to the application on the display device according to a first display resolution of the filtered first plurality of display resolutions,wherein a user is not able to select a resolution of graphical output for the application that exceeds the maximum resolution.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×