Extremely slow framerate/performance with OpenGL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On current bzr trunk, I noticed that Widelands is extremely slow (less than 1 fps) in-game in OpenGL mode.
Workaround: From the main menu, go to Settings -> Advanced Settings and turn off OpenGL. If even the main menu is too slow, you can start Widelands with the parameter --opengl=0 to force turning off OpenGL.
This happens with the following system setup:
- Lenovo Thinkpad T60 with Intel 945GM family integrated graphics
- Ubuntu 12.04 (Precise Pangolin)
- Linux kernel 3.2.0
- X.Org Intel driver 2.17
- Mesa 9.0
I know this system to be able to run Widelands in OpenGL in principle, though too many components (both Widelands and the Linux installation/
If anybody else sees very slow OpenGL performance, it may be a good idea to collect system specs in this bug report. I'll keep investigating this myself as I find the time to do so.
Related branches
- SirVer: Approve
-
Diff: 4139 lines (+1650/-1730)34 files modified.bzrignore (+2/-0)
src/graphic/graphic.cc (+1/-15)
src/graphic/graphic.h (+3/-4)
src/graphic/igraphic.h (+4/-2)
src/graphic/image_loader.h (+0/-1)
src/graphic/render/gamerenderer.cc (+286/-0)
src/graphic/render/gamerenderer.h (+97/-0)
src/graphic/render/gamerenderer_gl.cc (+669/-0)
src/graphic/render/gamerenderer_gl.h (+132/-0)
src/graphic/render/gamerenderer_sdl.cc (+279/-0)
src/graphic/render/gamerenderer_sdl.h (+55/-0)
src/graphic/render/gameview_opengl.cc (+0/-104)
src/graphic/render/gameview_opengl.h (+0/-56)
src/graphic/render/gameview_sdl.cc (+0/-105)
src/graphic/render/gameview_sdl.h (+0/-50)
src/graphic/render/gl_surface_texture.cc (+2/-2)
src/graphic/render/gl_surface_texture.h (+1/-1)
src/graphic/render/minimaprenderer.cc (+5/-970)
src/graphic/render/minimaprenderer.h (+10/-69)
src/graphic/render/terrain_opengl.h (+0/-327)
src/graphic/rendertarget.h (+3/-1)
src/logic/instances.h (+1/-1)
src/logic/tribe.h (+1/-1)
src/logic/world.cc (+3/-0)
src/logic/world.h (+3/-1)
src/point.h (+4/-1)
src/rect.h (+1/-1)
src/wui/mapview.cc (+17/-14)
src/wui/mapview.h (+3/-0)
src/wui/minimap.cc (+3/-3)
worlds/blackland/terrainconf (+17/-1)
worlds/desert/terrainconf (+16/-0)
worlds/greenland/terrainconf (+16/-0)
worlds/winterland/terrainconf (+16/-0)
For me, I think it is a hardware or driver problem, since I can't remember it working on this laptop, but maybe my specs are useful somehow.
- Acer Aspire 1310, S3 Graphics proSavage DDR
- OpenSuse 12.2
- Linux 3.4.11
- Mesa 8.0.4