intel inside macs
intel inside macs
I have not read much about these, is there any info on how an older game like q3 will play?
"Liberty, what crimes are committed in your name."
I downloaded the sources from http://icculus.org/quake3/ and got it working on my PowerBook after editing the makefile for the following:
- G4 instructions
- G5 scheduling
- -Os instead of -O3
- loop alignment at 32 for the benefit of G5 machines
- -framework SDL instead of the dylib
Here's the diff between the two makefiles:
If I built Quake 3 the default way, it'd crash on a call to openal during the demo. Dunno why and I didn't look into it.
I used timedemo 1 and the standard demo at 640x480 on a 1.33Ghz G4 PowerBook (768MB RAM) and got 77.6 fps. That's slower than the standard G4 one on the same machine (109fps). I'll fiddle with the optimisations to favour the PowerBook as they favour a G5 right now. There's also a SMP version which I've not tried.
One thing I noticed is that baseq3 has to be in "~/Library/Application Support/Quake3".
- G4 instructions
- G5 scheduling
- -Os instead of -O3
- loop alignment at 32 for the benefit of G5 machines
- -framework SDL instead of the dylib
Here's the diff between the two makefiles:
Code: Select all
pbg4:~/dev/quake3 mdavis$ svn diff Makefile
Index: Makefile
===================================================================
--- Makefile (revision 531)
+++ Makefile (working copy)
@@ -282,10 +282,10 @@
GL_CFLAGS =
endif
- OPTIMIZE = -O3 -ffast-math -falign-loops=16
+ OPTIMIZE = -Os -ffast-math -falign-loops=32
ifeq ($(ARCH),ppc)
- BASE_CFLAGS += -faltivec
+ BASE_CFLAGS += -faltivec -mcpu=G4 -mtune=G5
ifneq ($(VM_PPC),)
HAVE_VM_COMPILED=true
endif
@@ -318,7 +318,7 @@
# the file has been modified by each build.
LIBSDLMAIN=$(B)/libSDLmain.a
LIBSDLMAINSRC=$(LIBSDIR)/macosx/libSDLmain.a
- CLIENT_LDFLAGS=-framework Cocoa -framework OpenGL $(LIBSDIR)/macosx/libSDL-1.2.0.dylib
+ CLIENT_LDFLAGS=-framework Cocoa -framework OpenGL -framework SDL
else
# !!! FIXME: frameworks: OpenGL, Carbon, etc...
#CLIENT_LDFLAGS=-L/usr/X11R6/$(LIB) -lX11 -lXext -lXxf86dga -lXxf86vm
I used timedemo 1 and the standard demo at 640x480 on a 1.33Ghz G4 PowerBook (768MB RAM) and got 77.6 fps. That's slower than the standard G4 one on the same machine (109fps). I'll fiddle with the optimisations to favour the PowerBook as they favour a G5 right now. There's also a SMP version which I've not tried.
One thing I noticed is that baseq3 has to be in "~/Library/Application Support/Quake3".
Got it working on Intel...
http://homepage.mac.com/only_mortal/scr ... X-i386.jpg
Took a few hours, most of which was compiling SDL and Q3A.
http://homepage.mac.com/only_mortal/scr ... X-i386.jpg
Took a few hours, most of which was compiling SDL and Q3A.
just came across this website:
http://wiki.osx86project.org/wiki/index.php/PPC_Games
suggests q3 should run okay, but does not mention pb related issues or if the networking was public multiplayer or lan....
another suggestion from a diff forum:
http://wiki.osx86project.org/wiki/index.php/Darwine
using Darwine which is a form of wine (of course I have nfi about these) but are they reasonable options? Something the community could do?
http://wiki.osx86project.org/wiki/index.php/PPC_Games
suggests q3 should run okay, but does not mention pb related issues or if the networking was public multiplayer or lan....
another suggestion from a diff forum:
http://wiki.osx86project.org/wiki/index.php/Darwine
using Darwine which is a form of wine (of course I have nfi about these) but are they reasonable options? Something the community could do?
"Liberty, what crimes are committed in your name."
Okay, I got near the iMac for an hour today and built a universal binary with XCode 2.2 (GCC 4) and some optimizations specific for each processor (Altivec and SSE3) along with -Os code optimization.
The test was at 640x480 in a window with sound at low quality (to avoid an OpenAL crash). I ran a timedemo on the default demo twice and took a screen shot of the final results. Note that it seems to be using a software renderer for audio...
The machine specs were:
- 20" iMac dual core with 512MB of RAM (as supplied by Apple)
- 2Ghz dual G5 with 1.5GB of RAM
Both have the latest OS installed.
http://homepage.mac.com/only_mortal/scr ... Q3I386.jpg
http://homepage.mac.com/only_mortal/scr ... /Q3PPC.jpg
Note the Intel based system is quite a bit faster!
The test was at 640x480 in a window with sound at low quality (to avoid an OpenAL crash). I ran a timedemo on the default demo twice and took a screen shot of the final results. Note that it seems to be using a software renderer for audio...
The machine specs were:
- 20" iMac dual core with 512MB of RAM (as supplied by Apple)
- 2Ghz dual G5 with 1.5GB of RAM
Both have the latest OS installed.
http://homepage.mac.com/only_mortal/scr ... Q3I386.jpg
http://homepage.mac.com/only_mortal/scr ... /Q3PPC.jpg
Note the Intel based system is quite a bit faster!
woah, thats a good improvement. I guess there is no question of it being legit on pb servers though.
What is going to happen to games like wolfenstein that were brought out for mac, theyre not likely to produce intel optimised versions are they....
I guess teh next edition would be tho....
What is going to happen to games like wolfenstein that were brought out for mac, theyre not likely to produce intel optimised versions are they....

I guess teh next edition would be tho....
"Liberty, what crimes are committed in your name."