SC4 Devotion Forum Archives

SimCity 4 General Discussion and Tutorials => SimCity 4 General Discussion => Topic started by: gabrielbyrnei on December 23, 2009, 05:59:10 PM

Title: Linux - Hardware Rendering
Post by: gabrielbyrnei on December 23, 2009, 05:59:10 PM
Has anyone here been able to play using hardware rendering on an ATI card? if so, how? Playing on software is incredibly slow on bigger tiles.
Title: Re: Linux - Hardware Rendering
Post by: SC4BOY on December 23, 2009, 10:14:33 PM
I believe hardware rendering requires DirectX. Does Linus do DirectX? I thought that was only in Microsoft's bag'o'goodies.. :)  There are OpenGL renders for ATI cards. Perhaps that will work? I don't know a lot about that. Maybe someone who uses OpenGL would know. I tried it briefly on my XP system, but never got satisfactory results.
Title: Re: Linux - Hardware Rendering
Post by: sumwonyuno on December 24, 2009, 12:26:33 AM
I don't have an ATI card, but I have success with SimCity on Linux.  If you haven't done any wine registry tweaks, I suggest you take a look at: http://www.simtropolis.com/omnibus/index.cfm/Main.SimCity_4.Running_Sim_City_4_on_Linux

You can try to load the game with the OpenGL option: -d:opengl
As an example:
wine ".../path/to/game.../Maxis/SimCity 4 Deluxe/Apps/SimCity 4.exe" -intro:off -f -d:opengl
Title: Re: Linux - Hardware Rendering
Post by: SC4BOY on December 24, 2009, 04:14:21 AM
Quote from: sumwonyuno on December 24, 2009, 12:26:33 AM
You can try to load the game with the OpenGL option: -d:opengl
As an example:
".../path/to/game.../Maxis/SimCity 4 Deluxe/Apps/SimCity 4.exe" -intro:off -f -d:openg

That was the limit of my trial. It was a total failure trying to render the game in a small playing card sized window in the middle of my screen. I don't know what would actually be required. Under wine, it may work fine, but didn't for me under XP
Title: Re: Linux - Hardware Rendering
Post by: sumwonyuno on December 24, 2009, 04:26:50 AM
Did you try the additional arguments for screen resolution?
As an example for fullscreen 1024x768:
-r 1024x768x32
Title: Re: Linux - Hardware Rendering
Post by: gabrielbyrnei on December 24, 2009, 08:28:47 AM
I did try -d:opengl and got horrible results, screen corruption, etc.

I guess ill find a way of installing directx libraries for wine
Title: Re: Linux - Hardware Rendering
Post by: gabrielbyrnei on December 24, 2009, 09:00:00 AM
Ok, so i installed d3dx9 (directx 9.0c) using winetricks and configured my Simcity 4.ini file so it used directx instead of opengl.

This is what i got

(https://www.sc4devotion.com/forums/proxy.php?request=http%3A%2F%2Fimg42.imageshack.us%2Fimg42%2F4083%2Fglitchx.th.jpg&hash=bbf4d3531599586b324866486ecc30c5f9122b3e) (http://img42.imageshack.us/i/glitchx.jpg/)
Title: Re: Linux - Hardware Rendering
Post by: SC4BOY on December 24, 2009, 12:09:06 PM
That's kind of related to what happened to me.. it's like OpenGL is trying to tile the screen. Perhaps someone is around who's used OpenGL for SC4.. they are few and far between.
Title: Re: Linux - Hardware Rendering
Post by: sumwonyuno on December 24, 2009, 01:39:55 PM
I guess I can't really help much about the ATI thing.

So wait, you guys have been able to play SimCity under some other configuration?  gabrielbyrnei, it seems you have the game working under software mode, but it's running slow for you on large tiles.
Title: Re: Linux - Hardware Rendering
Post by: SC4BOY on December 24, 2009, 10:34:39 PM
I believe both ATI and nVidea support hardware OpenGL (exactly what that means is open to interpretation as the game was designed for DirectX.. and as also discussed many times, the GPU does very little in SC4 no matter which method you use).. The video card does 2 things that I can see

1. It provides an isolated, dedicated, and fast set of memory for the screen image (instead of the video on motherboard systems which simply share standard system memory)
2. The gpu seems to run only the "special effects" such as clouds, explosions, etc The cpu does all "picture view" rendering itself.

Title: Re: Linux - Hardware Rendering
Post by: gabrielbyrnei on December 25, 2009, 07:57:30 AM
I can indeed run it on software mode with no corruption etc. But its getting kind of slow with 1kk population on a big tile.


And yes, ofcourse, ATI and Nvidia both support OpenGL. Until Catalyst 9.11 it supported OpenGL 2.1 if im not mistaken