This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Rendering and physics thread repartition


Rendering and physics thread repartition

Postby Marcus » Sep 1, 2006 @ 12:41am

Last edited by Marcus on Sep 1, 2006 @ 2:32pm, edited 1 time in total.
- Marcus -
User avatar
Marcus
pm Member
 
Posts: 12
Joined: Aug 31, 2006 @ 7:29pm
Location: France


Postby Kzinti » Sep 1, 2006 @ 12:53am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby refractor » Sep 1, 2006 @ 6:55am

For some (relatively esoteric) handheld systems (notably the GP2X) it is worth partitioning the game code into two because they do have multiple CPUs. It's also worth considering if you're targeting the game at current/future PCs.

However, I agree with kzinti and would target a single-cored machine with a traditional single-threaded one. There's no point messing about with the extra thread synchronisation overhead if you're not gaining anything anyway.
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby Marcus » Sep 1, 2006 @ 11:58am

- Marcus -
User avatar
Marcus
pm Member
 
Posts: 12
Joined: Aug 31, 2006 @ 7:29pm
Location: France


Postby Kzinti » Sep 1, 2006 @ 4:33pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Marcus » Sep 1, 2006 @ 11:00pm

Attachments
PHAL thread sample.zip
Multithreading sample with PHAL
(51.14 KiB) Downloaded 770 times
- Marcus -
User avatar
Marcus
pm Member
 
Posts: 12
Joined: Aug 31, 2006 @ 7:29pm
Location: France


Postby Marcus » Sep 2, 2006 @ 11:32pm

- Marcus -
User avatar
Marcus
pm Member
 
Posts: 12
Joined: Aug 31, 2006 @ 7:29pm
Location: France


Postby jaguard » Sep 3, 2006 @ 3:24am

jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Postby warmi » Sep 3, 2006 @ 5:58pm

warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


Postby Kak » Sep 3, 2006 @ 6:42pm

in a single loop, you can just render once and run the physics thread as many times as you need, depending on the time spent so far.

I suppose somebody'd have said it in those long messages though ;)
User avatar
Kak
pm Member
 
Posts: 291
Joined: Jul 26, 2003 @ 12:24pm
Location: Zannarkand, Spira


Postby Kzinti » Sep 3, 2006 @ 7:47pm

What Kak said... You don't want to run your physics with a variable timestep. Just run the physics at the rate you need (say 30/sec) with a fixed time step.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Marcus » Sep 4, 2006 @ 1:55pm

- Marcus -
User avatar
Marcus
pm Member
 
Posts: 12
Joined: Aug 31, 2006 @ 7:29pm
Location: France


Postby Kak » Sep 4, 2006 @ 8:48pm

User avatar
Kak
pm Member
 
Posts: 291
Joined: Jul 26, 2003 @ 12:24pm
Location: Zannarkand, Spira


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron