Re: [PyOpenGL-Users] processor usage & import images
Brought to you by:
mcfletch
From: enrike <en...@al...> - 2004-08-09 21:05:42
|
hi >> when i run my progam it takes 98% of the CPU. >> I would like to know some suggestions about who to reduce and control >> this. >> maybe reducing the fps?. is there any other way? > > > synchronize to vsync -- only draw as many frames as get displayed. sorry. how do i do this? I am kind of new to many of these concepts. >> I have been using SDL and there you would tipicly optimise this by >> controlling which parts of the screen are updated. >> >> Another question is if anyone knows some module that implements >> python scripts to import images (to use as textures). >> I am using Image but this is a rather big module for my pourpose and >> would like to use some python based scripts for this. > > > Another option would be pygame -- see, for example: > http://cvs.sourceforge.net/viewcvs.py/visionegg/visionegg/src/ > Textures.py?view=markup yes i know pygame but i actually went into openGL because i need to do graphics in a wxpython application frame. Pygame and wxpython dont like each other. thanks! -- enrike |