New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Game Programming Question.

Post Reply New Thread Subscribe

Thread Tools

Member Since: Nov 06, 2007
Location: Atlanta
Posts: 142
shelflife19 has a little shameless behaviour in the past

shelflife19 is offline
Is it possible to code a full featured fully functional FPS in Cocoa/Objective-C and only cocoa/Objective-C? I would imagine it would run alot better then c++ or regular c, but what kind of difficulty are we looking at?
QUOTE Thanks

jdgti's Avatar
Member Since: Mar 14, 2005
Location: Atlanta, GA
Posts: 443
jdgti will become famous soon enough
Mac Specs: 17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM

jdgti is offline
I don't know about objective C, but 'regular C' is blazing fast.
QUOTE Thanks

xstep's Avatar
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
I would expect a good C programmer could write faster code even if he also knew Objective-C or C++ as well. The reason is object coding has overhead that straight C does not.

To get the most performance out of a CPU you would want to become an expert assembly language programmer. In the past I have seen it argured with brief code samples that a good C programmer with a good optimizing C compiler can create code as efficient as an expert assembly coder, or extremely close.

Remember that Objective-C is a superset of C, so that means you have all of the capabilities of C if you want to write straight C code in parts of your code.

I don't know the answer to your first question. Tiger and Leopard take advantage of the GPU and that may give enough performance boost to side step the objective coding overhead issues. This I think is the type of thing you have to investigate by doing some learning and experiment coding.
QUOTE Thanks

Post Reply New Thread Subscribe

« Programming Direction - Help Needed | Programming »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
The QUESTION Game ToddG Schweb's Lounge 159 08-15-2007 05:25 PM
Ask 'me' a question... eric Schweb's Lounge 22 01-12-2007 06:33 AM
Computer game question MUMacUser Switcher Hangout 0 10-03-2004 10:37 AM
Another Dually Question thinkbible Apple Desktops 1 08-09-2004 11:19 AM
Postscript question battleangel444 OS X - Operating System 2 07-09-2004 12:45 PM

All times are GMT -4. The time now is 05:02 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?