Porting

This is a discussion on Porting within the Tech Board forums, part of the Community Boards category; If you write a full program for kicks lets say a game. How much time on average does it take ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    8

    Porting

    If you write a full program for kicks lets say a game. How much time on average does it take to port the game to Linux and Mac. Game is written C++ With OpenGL.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    470
    In order to port a game like this it would require replacing all of the glue code between opengl and the api along with the native api calls. The platform specific stuff typically deals with threads, timers and datatypes, though there are probably more.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,536
    Considerably less time than if you'd used say DirectX

    If you've only used ANSI-C++, STL and OpenGL, then chances are the effort would be pretty minimal.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Let's say... it took you a month to write the program in the first place... Lets say you used mostly standard-portable C++, and multiplatform libraries... Let's say you already have experience writing OpenGL programs for the MAC and Linux. It should take you less than a week to port to each of the new platforms.

    Let's say you don't have experience with the MAC & Linux programming tools... It's probably going to take a month for each platform.

    Most commercial programs contain quite a bit of system-specific code. You've probably noticed that 90% of the programs at the computer store are available for only one platform, and those that are available for multiple platforms. This is a hint about how difficult it is to write large (or port) programs for multiple platforms.

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,536
    It's just another programming skill which you acquire along the way.

    Having written a program for X and ported to Y, you'll discover a lot of new information.

    With such experience, writing another program for X and porting to Y will be a much easier exercise
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Porting from VC6 to Linux Fedora core 5
    By g4j31a5 in forum C++ Programming
    Replies: 17
    Last Post: 08-08-2006, 01:59 AM
  2. porting application from 32 bit to 64 bit error
    By gandalf_bar in forum Linux Programming
    Replies: 1
    Last Post: 09-14-2005, 09:20 AM
  3. Porting code from VC++6 to VC .NET??
    By dug in forum C++ Programming
    Replies: 10
    Last Post: 01-31-2005, 10:42 AM
  4. Porting to FreeBSD
    By Beastie in forum Linux Programming
    Replies: 1
    Last Post: 06-15-2003, 07:37 PM
  5. Porting app from c to c++
    By GUI_XP in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2002, 02:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21