For comparison, I noticed in Blizzard's other game, World of Warcraft, you can explicitly specify in a configuration file (C:/Program Files/World of Warcraft/WTF/config.wtf) to use OpenGL (SET gxApi "OpenGL"). Does this ability exist in Starcraft 2? I found the configuration file (.../My Documents/Starcraft II/variables.txt) but I don't see a line I can modify to tell it to use OpenGL.
I know that running the game on Mac requires you to use OpenGl and not DirectX, however, can I use the OpenGL library instead of DirectX9 on Windows?
I don't know if the technical details of my problem will help, but here is what I hope to accomplish by using OpenGL. Currently I am running Windows programs on Ubuntu 13.04 using Wine 1.6-rc4. Prior to release of HoTS, Starcraft 2 actually ran (though choppy) making DirectX9 calls to Wine. However, since HoTS I'm stuck running at 0 fps when I try to play a mission (it's more like 1 frame per minute). I was able to get World of Warcraft to run smoothly by telling it to use OpenGL.
My machine is rather old, using ATI Radeon Xpress 1100 integrated video card. AMD doesn't provide new linux drivers for legacy cards, the drivers that are currently on their site are compatible with outdated versions of x.org. So for the record, I am using OpenGL drivers. However, most new cards come with drivers that are compatible with OpenGL and DirectX9/10, so it wouldn't be too far a stretch to think Blizzard would give you the option to use OpenGL as it did with World of Warcraft.
Oh I forgot to mention, I followed the following directions from AppDB, I don't know if it did anything though:
Regedit video performance tweaks
Some users report that the following registry edits can increase video performance. Some users report that these changes make no difference, and some even report that they make things worse! Feel free to experiment....
- Access the registry: wine regedit
- Navigate to HKEY_CURRENT_USER/Software/Wine/Direct3D. If this key does not exist, create it.
- Right click on Direct3D, and select New > String Value to add each of the entries below.
Key Value
DirectDrawRenderer opengl
Multisampling disabled
OffScreenRenderingMode pbuffer
UseGLSL disabled
VertexShaderMode hardware
VideoMemorySize (Set this value to the RAM on your video card, in MB)
wine starcraft\ II.exe -opengl
? Sry, not that familiar with running wine with arguments, somewhat of a noob here. Also, how do I tell if it worked once I'm running the game?fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
It repeated for a while. It seems as though Starcraft 2 is still making calls to direct x. I'm inclined to believe that Starcraft 2 isn't built to use OpenGL, though I can't find anywhere on Blizzards website or forums that says that.