Talk:Resource Tracking for FlightGear: Difference between revisions

Jump to navigation Jump to search
m
Line 51: Line 51:
(100/200 and 500 would be replaced with the corresponding code)
(100/200 and 500 would be replaced with the corresponding code)


In the LinuxMemoryInterface::LinuxMemoryInterface() constructor, it would need to read the gpu-vendor property (as per the help/about dialog) and instantiate the correct class,  by adding a pointer to it that holds the object:
In the LinuxMemoryInterface::LinuxMemoryInterface() constructor, it would need to read the gpu-vendor property (as per the help/about dialog) and instantiate the correct class,  by adding a pointer to it that holds the <code>_gpu</code> object:


<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
Line 116: Line 116:
       _gpu = new NVIDIA_GPU;
       _gpu = new NVIDIA_GPU;
     }
     }
    // else if ATI/AMD ...
    // else if INTEL ...
     else {
     else {
     SG_LOG(SG_GENERAL, SG_ALERT, "Unsupported GPU vendor:" << glvendor);
     SG_LOG(SG_GENERAL, SG_ALERT, "Unsupported GPU vendor:" << glvendor);

Navigation menu