Comments (7)
Original comment by Jason Marshall (Bitbucket: jmm0, GitHub: jmm0):
I have changed pygame/_ init _.py so that windib is the default video driver for almost all Windows users.
from pygame.
Original comment by René Dudfield (Bitbucket: illume, GitHub: illume):
Sounds good to me :)
from pygame.
Original comment by Jason Marshall (Bitbucket: jmm0, GitHub: jmm0):
I think it's time to make windib the default renderer for Windows XP. With that change, we'll be able to close this issue. In my opinion, the productivity losses due to directx renderer bugs outweigh the performance advantage of the directx renderer on some hardware.
Complicated try-directx-except-windib logic would not be a good idea because sometimes after the directx renderer fails, only a system reboot can restore the PC to proper working order.
http://article.gmane.org/gmane.comp.python.pygame/17527/match=%22system%20reboot%20cleared%22
This is how I think the renderer-choosing logic should work:
Windows 95/98/Me without DirectX 5 or greater → windib
Windows 95/98/Me with DirectX 5 or greater → directx
Windows NT/2000/XP/Vista/7/8... → windib
I'll implement the change if @illume doesn't object to my approach.
from pygame.
Original comment by Anonymous:
**i was having the same problem too, can somebody help me out, i was working for a pygame project, a lil bit explanation for me to understand it well.. plzzzzz and thanks!!
from pygame.
Original comment by Anonymous:
Its a miracle! lol thanks illume for the code! I had issues getting my game working using the pygame library, and this fixed it!
from pygame.
Original comment by Lenard Lindstrom (Bitbucket: llindstrom, GitHub: llindstrom):
The SDL Direct X driver is unreliable. 'windib' is the SDL default. How 'directx' behaves probably depends on which version of Direct X is installed. It would seem Microsoft has given up maintaining compatibility with Direct X 5.
from pygame.
Original comment by René Dudfield (Bitbucket: illume, GitHub: illume):
import os
os.environ['SDL_VIDEODRIVER']='windib'
I think maybe we should finally switch to windib being the default even on XP. We could try some complicated scheme to try to init the display with directx first in a separate process and if that fails we try windib... but I guess that might be failure prone too.
from pygame.
Related Issues (20)
- pygame 2.5.0 file is not a Windows BMP file
- Problem in converting a simple pygame file into apk using buildozer
- Snake.go HOT 2
- Add clear() function to pygame.scrap (also, rename?) HOT 1
- Downlaoding Pygame Not Working HOT 2
- I keep getting this error and my pygame doesn't run, need help
- improper KEYDOWN events
- Can't get title bar to show when having a large screen size HOT 1
- Bug about pygame.draw.polygon() HOT 9
- Pygame Keyboard Event Handling Not Working with ALE Environment in WSL 2
- KEYDOWN监听不到字母 HOT 1
- I get an error when I log out of my game: (line 145 pygame.display.update(); pygame.error: video system not initialized) HOT 1
- Some SVGs don't display correctly HOT 2
- Segfault when _sdl2.Renderer gets garbage collected after window has been destroyed
- Pygame.mixer module not available? HOT 1
- Program causing Mac OS to freeze HOT 3
- `set_mode()` wont change the graphics mode the second time when OPENGL flag is used HOT 6
- litta
- Pygame fails to compile with GCC-14 HOT 4
- Deload a pygame.image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygame.