logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic [227i] Multi-Threaded BSP builder (Read 1170 times)
.:..:
Oldunreal MasterPoster
Developer Team
*
Offline



Posts: 1512
Location: Finland
Joined: Aug 16th, 2005
Gender: Male
[227i] Multi-Threaded BSP builder
Nov 4th, 2018 at 10:33am
Print Post  
227i only!
This is an experiment for multi-threaded BSP rebuilder. It works quite efficiently  as it speeds up build time by a lot if you have a multi-core CPU.

It only builds BSP and optimizes geometry (does not compute lighting nor paths yet).

All you have to do is to add EditPackages=MapBuilder to Unreal.ini in correct section. Then in editor click the "Multi-core map rebuild." option on the left (uses invert selection icon). Don't get afraid as it will quite literally lock the computer (even mouse movement will freeze) at some point during build as it makes every CPU core work to 100 %.
It has no BSP build options yet, it just defaults to most optimal build options.
After that you need to use regular light/paths builder.

Download from here: www.klankaos.com/downloads/MapBuilder227i.zip

EDIT: To some comparison, when testing with one of the largest Firestorm maps. Rebuilding BSP with 227i editor took me 5:04 minutes to rebuild, but with this tool it rebuilt it in 1:32 minutes. (I have a quad core Intel i5 processor, 3.5 GHz)
« Last Edit: Nov 4th, 2018 at 9:03pm by .:..: »  

Shivaxi wrote on Jul 25th, 2013 at 12:50pm:
...and now im stuck trying to fix everything you broke for the next 227 release xD Tongue

(ಠ_ಠ)
Back to top
IP Logged
 
yrex .
Betatester
Offline


Oldunreal member

Posts: 224
Joined: May 6th, 2015
Re: [227i] Multi-Threaded BSP builder
Reply #1 - Nov 5th, 2018 at 6:50pm
Print Post  
Indeed, it's twice as fast on a dual-core CPU. And no, it didn't lock up my PC or mouse.

I think I found a bug. If you open any map and rebuild it twice in a row, this happens:
Quote:
---------------------------
Critical Error
---------------------------
General protection fault!



History: TestLights <- FEditorVisibility::TestVisibility <- UEditorEngine::TestVisibility <- UMapBuilderHook::execBuildMap <- (SpeedBuilder Transient.SpeedBuilder2 @ Function MapBuilder.SpeedBuilder.Build : 000F) <- UObject::execClassContext <- (SpeedBuilder Transient.SpeedBuilder2 @ Function MapBuilder.SpeedBuilder.Build : 000F) <- UObject:TonguerocessEvent <- (SpeedBuilder Transient.SpeedBuilder2, Function MapBuilder.SpeedBuilder.Build) <- WButtonGroup::ButtonClicked <- WButtonGroup:ShockednCommand <- WM_HSCROLL <- WWindow::WndProc <- WWindow::StaticProc <- WWindow::WndProc <- WWindow::StaticProc <- DispatchMessage <- 01E2021E 514 <- MessagePump <- MainLoop
---------------------------
OK   
---------------------------
  

Quality content | mail me instead of PMing: ampoyrex(a)wp(.)pl
Back to top
 
IP Logged
 
.:..:
Oldunreal MasterPoster
Developer Team
*
Offline



Posts: 1512
Location: Finland
Joined: Aug 16th, 2005
Gender: Male
Re: [227i] Multi-Threaded BSP builder
Reply #2 - Nov 6th, 2018 at 6:30pm
Print Post  
Yea I noticed, missed to cleanup a variable after build. I updated the link to new code (also fixed a possible data racing problem).
  

Shivaxi wrote on Jul 25th, 2013 at 12:50pm:
...and now im stuck trying to fix everything you broke for the next 227 release xD Tongue

(ಠ_ಠ)
Back to top
IP Logged
 
Dr.Flay™
Senior Member
****
Online


ChaosUT-333networks

Posts: 386
Location: Kernow, UK
Joined: Dec 9th, 2012
Gender: Male
Re: [227i] Multi-Threaded BSP builder
Reply #3 - Nov 7th, 2018 at 4:56am
Print Post  
Why not a version for 227j ?  Cry

BTW. Awesome !
  
Back to top
IP Logged
 
Buster
Global Moderator
*****
Offline



Posts: 1525
Location: BC, Canada
Joined: Jun 8th, 2005
Gender: Male
Re: [227i] Multi-Threaded BSP builder
Reply #4 - Nov 8th, 2018 at 8:02am
Print Post  
Yeah, this is pretty useful, especially when maps are getting more complex. A pleasant result of all the goodies that come with 227.
  

Gatherstone - Unreal by Design
https://gatherstone.oldunreal.com

OK - he falls
Keep it Unreal !!
Smiley_~
Back to top
WWW  
IP Logged
 
AlexNitro44
Junior Member
**
Offline


Oldunreal member

Posts: 59
Location: United Kingdom
Joined: Jun 9th, 2017
Gender: Male
Re: [227i] Multi-Threaded BSP builder
Reply #5 - Nov 8th, 2018 at 2:54pm
Print Post  
Seems pretty useful - I'll have a shot of it when I get chance. Lighting is the one area of the build process that really needs this sort of work, but BSP building is a nice improvement too!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo