Results 1 to 9 of 9

Thread: OpenGL stunts: Watching GPU memory occupancy

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736

    Lightbulb OpenGL stunts: Watching GPU memory occupancy

    I found out there is a way to retrieve total/available memory on GPU. There is GL_NVX_gpu_memory_info on NVIDIA hardware and GL_ATI_meminfo on AMD cards.
    The code I provide below works only for NVIDIA cards, once my friend gets ATi I will test the GL_ATI_meminfo and provide solution working on Radeons as well.

    It is interesting to watch how much GPU memory uses for example Firefox, try to launch the program and then just open new tabs in FireFox 5.

    The proggie is very elemental, it allocates 512x512 textures as user commands via PageUp/PageDown. The textures are created on the fly.


    Petr
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Petr Schreiber; 11-08-2011 at 22:46.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. Memory information
    By Petr Schreiber in forum Win API interface
    Replies: 11
    Last Post: 09-11-2020, 13:53
  2. Replies: 2
    Last Post: 27-06-2011, 11:46
  3. Copying memory in C
    By danbaron in forum Science
    Replies: 10
    Last Post: 07-06-2011, 09:53

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •