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
  [META] Xonotic reboot/port in modern engine ballerburg9005 32 14,114 02-22-2022, 05:11 PM
Last Post: ballerburg9005
  [TUTORIAL] How to create a command - DarkPlaces engine C programming LegendGuard 1 2,617 03-31-2021, 03:43 PM
Last Post: LegendGuard
  Engine: cpu extensions kingtiger01 0 3,016 11-06-2015, 12:39 AM
Last Post: kingtiger01
  Ongoing port to the Unvanquished engine? poVoq 9 14,524 11-05-2015, 11:09 PM
Last Post: Danfun64
Brick A script engine written in QuakeC Melanosuchus 9 13,582 10-14-2014, 02:01 AM
Last Post: Melanosuchus
  Xonotic Game Engine, Mapping, Development - General Developer Questions p14r 6 10,908 08-04-2014, 10:24 AM
Last Post: p14r
  The Vehicles thread tZork 56 58,850 04-06-2013, 10:53 AM
Last Post: Re.Boot
  Lightning Gun / Machine Gun thread _Subzero_ 56 61,575 08-14-2012, 06:49 AM
Last Post: Lee_Stricklin
Exclamation Map incubator thread: Vociferous CuBe0wL 25 36,532 07-09-2012, 10:04 AM
Last Post: hutty
  The Overkill thread tZork 30 41,112 06-19-2012, 12:06 PM
Last Post: tZork

Forum Jump:


Users browsing this thread:
1 Guest(s)

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