Results 1 to 3 of 3
  1. #1

    Member Since
    Nov 06, 2007
    Game Programming Question.
    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?

  2. #2

    jdgti's Avatar
    Member Since
    Mar 14, 2005
    Atlanta, GA
    17" Macbook Pro Unibody 2.66 Ghz and Powerbook G4 1.67 GHz 2.0GB RAM
    I don't know about objective C, but 'regular C' is blazing fast.

  3. #3

    xstep's Avatar
    Member Since
    Jun 25, 2005
    On the road
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question about Programming
    By mag709 in forum iOS Development
    Replies: 2
    Last Post: 05-17-2012, 04:19 PM
  2. Bluetooth programming question
    By aelinden in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 01-13-2012, 08:25 AM
  3. Newb Programming Question
    By OIzq in forum OS X - Operating System
    Replies: 3
    Last Post: 06-29-2011, 09:09 AM
  4. newbie programming question
    By onwin in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 04-22-2009, 11:14 PM
  5. Question about programming languages
    By Dragonlance1561 in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 10-28-2008, 04:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts