DisplayInformation missing on Windows in 1.9.0

Bug #1475884 reported by Yaio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
Undecided
rdb

Bug Description

This program:

import direct.directbase.DirectStart
di = base.pipe.getDisplayInformation()
num_dm = di.getTotalDisplayModes()
print num_dm
print [(di.getDisplayModeWidth(idx), di.getDisplayModeHeight(idx)) for idx in range(num_dm)]
run()

correctly prints:

188
[(640, 480), (640, 480), ... , (1440, 900)]

with Panda3D 1.8.1, but it prints:

0
[]

on the same computer with Panda3D 1.9.0 and the current devel from buildbot.

It happens on a computer with Windows 7 64 bit; GeForce GTX 980; driver version 353.30.

Revision history for this message
rdb (rdb) wrote :

It's because the Config.prc variable "request-dxdisplay-information" is now set to false by default, because this querying mechanism made the start-up time very slow and consumed a lot of GPU resources. You can enable it if you want this information.

Changed in panda3d:
status: New → Won't Fix
summary: - Wrong display info
+ DisplayInformation missing on Windows in 1.9.0
rdb (rdb)
Changed in panda3d:
assignee: nobody → rdb (rdb)
milestone: none → 1.9.1
status: Won't Fix → In Progress
Revision history for this message
rdb (rdb) wrote :

I found a Win32 API we can use to get this information anyway. I checked in support for that. So, in 1.9.1, you will be able to get display modes again, even with the default settings.

Changed in panda3d:
status: In Progress → Fix Committed
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.