[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] display driver
- To: pygame-users@seul.org
- Subject: [pygame] display driver
- From: David Mallwitz <dave@dmallwitz.net>
- Date: Thu, 21 Aug 2003 00:29:39 -0400
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 21 Aug 2003 00:27:32 -0400
- Reply-to: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
What is the correct way to get hardware acceleration with Pygame +
PyOpenGL? The snippet below seems to indicate that I've got software
rendering with the DirectX driver, and my CPU usage hits 80% with just a
simple rotating wireframe teapot so I'm inclined to agree. This is on a
Win2K system with an Nvidia card and recent drivers.
>>> import pygame
>>> from pygame.locals import *
>>> pygame.init()
(6, 0)
>>> pygame.display.set_mode((1024,768), OPENGL|DOUBLEBUF)
<Surface(1024x768x32 SW)>
>>> pygame.display.get_driver()
'directx'
I've read Pete's DisplayModes tutorial and the NewbieGuide and run
through the online docs, but ended up with no definitive answers.
HWSURFACE, HWPALETTE, FULLSCREEN, HW_ACCEL - what is the magic incantation?
Dave