Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Engine: thread handling

#1
I noticed when cross-compiling(darkplaces) that the code is still highly based around the Q1 source. everything from input handling to Physics is handled on a single thread. Which would of been fine in the Pentium/8086 era, but is quite pointless(and not scalable at all now).

Why is no one trying to move to a more win/posix style independent thread handling? it would significantly help with physic simulation costs. as multi-core cpu's are almost absolute commonplace in the wild now. at the very least even older hyperthread extensible platforms could see a performance boost.

While debugging my servers on several occasions, ive noticed heavy load on xonotic's thread for physics handling, worse is scalable. more users, more load. its extremely noticeable on older hardware, alternative platforms and low core frequency's. as q1 physic operations are quite taxing, much less the model handling as they are no longer the fixed-point movable objects they were in q1(lol).

forking the network, physics, and sdl/glx/al to there own threads would take a significant step to allieving this and make the engine much more robust. its not a big step from there to let win/posix handle the thread execution and balancing.

----

Anyways, my suggestions and concerns for your eyes.
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Engine: cpu extensions kingtiger01 0 1,512 11-06-2015, 12:39 AM
Last Post: kingtiger01
  Ongoing port to the Unvanquished engine? poVoq 9 7,386 11-05-2015, 11:09 PM
Last Post: Danfun64
Brick A script engine written in QuakeC Melanosuchus 9 7,120 10-14-2014, 02:01 AM
Last Post: Melanosuchus
  Xonotic Game Engine, Mapping, Development - General Developer Questions p14r 6 6,436 08-04-2014, 10:24 AM
Last Post: p14r
  The Vehicles thread tZork 56 36,650 04-06-2013, 10:53 AM
Last Post: Re.Boot
  Lightning Gun / Machine Gun thread _Subzero_ 56 38,242 08-14-2012, 06:49 AM
Last Post: Lee_Stricklin
Exclamation Map incubator thread: Vociferous CuBe0wL 25 21,463 07-09-2012, 10:04 AM
Last Post: hutty
  The Overkill thread tZork 30 25,254 06-19-2012, 12:06 PM
Last Post: tZork
  Parallelization of Xonotic (and Darkplaces engine) Sarge999 19 14,552 11-21-2011, 03:22 PM
Last Post: Sarge999
  More Engine Suggestions - Different Lighting Handling master[mind] 13 10,283 04-04-2011, 09:36 AM
Last Post: Morphed

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-