Comment 2 for bug 1662961

Revision history for this message
Kam (kamg-deactivatedaccount) wrote :

I had to change the code to this:

import panda3d.core

base = ShowBase(windowType='none')

base.makeDefaultPipe()
di = base.pipe.getDisplayInformation()

print(di.getAvailablePageFileSize())
print(di.getAvailablePhysicalMemory())
print(di.getCpuBrandString())
print(di.getDriverDateYear())
print(di.getNumLogicalCpus())
print(di.getOsVersionMajor())

That would print the correct 'OsVersionMajor'.

Setting 'auto-cpu-data true' in Config.prc gives me the correct 'CpuBrandString' and 'NumLogicalCpus'.

.getAvailablePageFileSize() and .getAvailablePhysicalMemory() are still 0, same for the graphics device values.