Git Product home page Git Product logo

Comments (7)

illume avatar illume commented on May 22, 2024

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.

illume avatar illume commented on May 22, 2024

Original comment by René Dudfield (Bitbucket: illume, GitHub: illume):


Sounds good to me :)

from pygame.

illume avatar illume commented on May 22, 2024

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.

illume avatar illume commented on May 22, 2024

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.

illume avatar illume commented on May 22, 2024

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.

illume avatar illume commented on May 22, 2024

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.

illume avatar illume commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.