Results 1 to 5 of 5

Thread: How to make Multithreading games ?

  1. #1
    Join Date
    Apr 2009
    Posts
    12

    How to make Multithreading games ?

    Hi

    I Want to make multithreading game. But i have never used multi threading, so Can anyone provide me information that how to make multithreading game ? I made games for mobile phones.

  2. #2
    Join Date
    Oct 2008
    Posts
    54

    Re: How to make Multithreading games ?

    Multithreaded programming doesn't seem as hard as it used to, but it's still challenging to wring the greatest amount of performance out of multiple processor cores.

  3. #3
    Join Date
    Oct 2008
    Posts
    55

    Re: How to make Multithreading games ?

    Most games were designed to run in a single-threaded environment because of the state of the market i.e. a single CPU PC. Multi-threading incurs an overhead on the single CPU so game developers chose single threading. I think the difficulty they talk about is that they need to take apart the single thread game engine (i.e. the traditional infinite game loop - everything that happens up until you display a frame, then it starts all over again) and do some of those steps in parallel. The difficulty lies in resolving dependencies between steps in an iteration of a game loop to ensure they can happen exclusive of each other. Data also needs to be shared between threads so you have to ensure your objects/characters etc behave the same way as if the process was single threaded.

  4. #4
    Join Date
    May 2008
    Posts
    71

    Re: How to make Multithreading games ?

    Your game starts and runs on a single thread, so all the tasks run sequentially one after the other. Thus, the total running time of a frame will be equal to the sum of the running times of each task done during that frame.

    Using multiple threads would mean taking some of these tasks, and running them in parallel, at the same time as other tasks are running. In this configuration, the total running time of a frame will be roughly equal to the running time of the slowest of these parallel sets of tasks. Thus, the overall frame time is lower than when using a single thread, so the performance of the game is higher, yielding better framerates and smoother animations.

  5. #5
    Join Date
    May 2008
    Posts
    181

    Re: How to make Multithreading games ?

    The only benefit to multithreading during the Update stage that I see would be to get update tasks done faster. But all the threads would have to finish up their work before moving on to drawing.

Similar Threads

  1. Multithreading in intel IPP
    By Assasin boy in forum Motherboard Processor & RAM
    Replies: 9
    Last Post: 26-09-2010, 03:25 AM
  2. Multithreading and ArrayList
    By Logan 2 in forum Software Development
    Replies: 5
    Last Post: 09-02-2010, 05:16 AM
  3. run method of MultiThreading
    By beelow in forum Software Development
    Replies: 3
    Last Post: 14-11-2009, 10:18 AM
  4. Problem with Multithreading in C Language
    By Jagdish Gada in forum Software Development
    Replies: 4
    Last Post: 09-03-2009, 02:10 PM
  5. forks and multithreading
    By invincibledj20 in forum Software Development
    Replies: 0
    Last Post: 12-11-2008, 07:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,196,604.75068 seconds with 17 queries