Go Back   Steam Users' Forums > Steam Discussions > Steam for Mac > Source games

Reply
Click here to go to the first staff post in this thread.  
Thread Tools Display Modes
Old 05-13-2010, 03:56 PM   #1
jeanlain
 
Join Date: Mar 2010
Reputation: 268
Posts: 1,016
Question Is Source on OS X really openGL native?

Netkas asserts that he has found libraries in Source games that convert DirectX calls, much like Cider does.

www.netkas.org

I would trust Valve rather than Netkas, but I'm curious to know what these files are.
jeanlain is offline  
Reply With Quote
Old 05-13-2010, 03:59 PM   #2
RUSBoris
 
Join Date: Feb 2005
Reputation: 8
Posts: 834
Interesting
RUSBoris is offline   Reply With Quote
Old 05-13-2010, 04:11 PM   #3
poopdedoop78
 
Guest
Posts: n/a
well, considering the way it runs in OS X, I can believe that it's not native OpenGL.
  Reply With Quote
Old 05-13-2010, 04:25 PM   #4
jeanlain
 
Join Date: Mar 2010
Reputation: 268
Posts: 1,016
I bet these files are just remnants of Valve's own testings with several emulation methods. They did say they explored emulation.
jeanlain is offline   Reply With Quote
Old 05-13-2010, 04:27 PM   #5
vtor67
 
 
 
Join Date: Aug 2009
Reputation: 548
Posts: 1,620
There are dll's because the same copy of the game has mac and pc binaries.
it is native openGL
vtor67 is offline   Reply With Quote
Old 05-13-2010, 04:32 PM   #6
jeanlain
 
Join Date: Mar 2010
Reputation: 268
Posts: 1,016
They are not dlls; these are mac libraries (.dylib).
jeanlain is offline   Reply With Quote
Old 05-13-2010, 04:33 PM   #7
Mangr0v3
 
 
 
Join Date: Sep 2008
Reputation: 4313
Posts: 13,598
Well, I got a cryptic and strange response on [Macbeta]:

Me: Why is there a client and server DLL in my ~/Documents/Steam\ Content/<username>/Team\ Fortress\ 2/tf/bin ?
Valve: Because that is the game and how it runs.
Me:
Mangr0v3 is offline   Reply With Quote
Old 05-13-2010, 04:36 PM   #8
jeanlain
 
Join Date: Mar 2010
Reputation: 268
Posts: 1,016
Quote:
Originally Posted by Mangr0v3 View Post
Well, I got a cryptic and strange response on [Macbeta]:

Me: Why is there a client and server DLL in my ~/Documents/Steam\ Content/<username>/Team\ Fortress\ 2/tf/bin ?
Valve: Because that is the game and how it runs.
Me:
Put them to the trash and see if it still works.
jeanlain is offline   Reply With Quote
Old 05-13-2010, 04:39 PM   #9
GHRobson
 
Guest
Posts: n/a
*Talking with no knowledge of what im saying alert*

Maybe its so mods that use Dlls will still work without a special mac version having to be made?
  Reply With Quote
Old 05-13-2010, 04:40 PM   #10
Mangr0v3
 
 
 
Join Date: Sep 2008
Reputation: 4313
Posts: 13,598
Quote:
Originally Posted by GHRobson View Post
*Talking with no knowledge of what im saying alert*
Evidently. Mods would still need to be recompiled/ported.
Mangr0v3 is offline   Reply With Quote
Old 05-13-2010, 04:41 PM   #11
Mangr0v3
 
 
 
Join Date: Sep 2008
Reputation: 4313
Posts: 13,598
Quote:
Originally Posted by jeanlain View Post
Put them to the trash and see if it still works.
TF2 puts them back when it launches.
Mangr0v3 is offline   Reply With Quote
Old 05-13-2010, 05:00 PM   Click here to go to the next staff post in this thread.   #12
rbarris
 
Join Date: Apr 2010
Reputation: 1265
Posts: 1,026
I wrote the native OpenGL module for Source Mac. It presents a DX9 compatible interface to the engine, engine calls me, I call GL, dots appear.

The performance issues being investigated are generally driver level things - below this layering. The layering doesn't exhibit any noticeable overhead in our profiling.

The whole app is compiled with gcc as a native Mach-O binary using the OS X toolchain.
rbarris is offline   Reply With Quote
Old 05-13-2010, 05:01 PM   Click here to go to the next staff post in this thread.   #13
rbarris
 
Join Date: Apr 2010
Reputation: 1265
Posts: 1,026
Oh and the .dll's are not loaded, they are extraneous content. You're welcome to "sudo fs_usage" to prove it..
rbarris is offline   Reply With Quote
Old 05-13-2010, 05:04 PM   #14
orudge
 
Join Date: Dec 2008
Reputation: 0
Posts: 9
It's definitely an OpenGL port. when Valve ported Source to the Mac, I guess they just couldn't be bothered to go and add code that says "if Windows, use this filename, if Mac, use that", since it makes no difference technically. Better to keep the codebase simpler, less likelihood of bugs creeping in as a result.

And for those wondering why there's a client.dll and server.dll on the Mac port - well, look at the "portal\portal\bin" directory inside steamapps on Windows - they also have client.dylib and server.dylib. (The same is true for TF2 for me on Windows as well.) Again, for whatever reason, Steam just installs them onto both systems. Nothing really to read into, and no need to jump to conclusions!

EDIT: Ah, confirmation from rbarris himself there, too, while I was writing this post!
orudge is offline   Reply With Quote
Old 05-13-2010, 05:09 PM   #15
bib fortuna
 
 
 
Join Date: Dec 2008
Reputation: 80
Posts: 543
dots appear
bib fortuna is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Discussions > Steam for Mac > Source games


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -7. The time now is 10:47 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2015, All Rights Reserved.