Quake3World.com Forums
     Level Editing & Modeling
        Working on Litmus-Maps


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: Working on Litmus-Maps

Insane Quaker
Insane Quaker
Joined: 05 Nov 2010
Posts: 449
PostPosted: 07-14-2015 05:16 PM           Profile Send private message  E-mail  Edit post Reply with quote


As I've been doing increasingly complex work on q3map2 lately, I'm building a set of acid-test type maps to verify the compiler is doing things the right way. I'll eventually have a reference collection of compiled maps for each test to provide a baseline for what successful builds look like.

The idea is that provided you have q3map2 and pak0, these maps should always compile - and always compile the same. I'm working on compile scripts just to simplify things, but for now I've been posting map data on git hub because I want to be able to glance at the map code easily if the compiler throws an error on an entity or a brush.

https://github.com/volumetricsteve/Litmus-Maps

So far I've just got the two, but I'm working on some bsp-phase tests at the moment. One I'm doing a test build on now caused X11 to segfault...so I dropped back to the command line and re-ran it and for the past 40 minutes or so the bsp phase has been writing data to my drive non-stop. This map is just one hollow cube that's almost at the bounds for what radiant allows with a single light inside with a deathmatch_player_start in the middle.

Edit: About an hour later, the system spit out: systemd-udevd[184]: fork of child failed: cannot allocate memory
I think I filled my drive...I think it would throw a different error if ram got overloaded, right?




Top
                 

Boink!
Boink!
Joined: 19 Apr 2003
Posts: 4493
PostPosted: 07-14-2015 08:02 PM           Profile Send private message  E-mail  Edit post Reply with quote


You are trying to hit the limites of the updated compiler with your test maps? Because, today with the knowledge of detail brushes and caulk hulls a bsp compile should be less than a minute at the most, even for very detailed map. So your very long compiles seem to suggest you are really pushing things? Alas no idea how to help, but those compile times remind me of the bad old Q2 days, where a compile tool 24h on an Alpha under Linux, pretty much shredding the HDD. Also it seems to be suggesting a lack of main memory?




Top
                 

Insane Quaker
Insane Quaker
Joined: 05 Nov 2010
Posts: 449
PostPosted: 07-15-2015 08:01 AM           Profile Send private message  E-mail  Edit post Reply with quote


Correct, I'm going out of my way to push the compiler, but this is purely to verify that the modified compiler can still compile a set of complex maps, thereby validating a 'good' build of the compiler. I'm entering some new territory I think because I remember back around 2005 I was chugging along on a Pentium 4 with what couldn't have had more than 2GB of ram and some of my more insane maps would simply fail to compile....Today, memory in the scope of what q3map2 needs is practically an afterthought and the ways cpus have advanced, things that once took weeks now take minutes. Except, of course, in these oddball fringe cases.

I'm interested though....you mentioned the q2map compiler would induce a lot of shredding on the hard drive, was that because of swap use or something else?

I'm not sure what BSP was doing, but today I tried it again on the Cray and it knocked out the -- MakeTreePortals -- section in about a minute and a half compared to my laptop which spent a good hour or so murdering my SSD and I eventually had to kill the job.

I wonder if Quake 3/ioQuake3 could even render the map if it's just one gigantic hollow cube....I suspect there'd be a z-buffer issue at least.




Top
                 

Insane Quaker
Insane Quaker
Joined: 05 Nov 2010
Posts: 449
PostPosted: 07-16-2015 09:05 AM           Profile Send private message  E-mail  Edit post Reply with quote


Can someone try to compile this map?
https://github.com/volumetricsteve/Litm ... -small.map

Vis won't work, but I'd be curious to see what times people get on BSP and Light

I just got 40 seconds on BSP and 551 on Light

BSP:
q3map2 -threads 32 -fs_basepath /vsteve/q3 -meta -patchmeta -v lighttest-small.map
Light:
q3map2 -threads 32 -fs_basepath /vsteve/q3 -light -fast -samples 2 -patchshadows -bounce 8 -v lighttest-small.map




Top
                 

Mercenary
Mercenary
Joined: 06 Nov 2011
Posts: 240
PostPosted: 07-16-2015 03:40 PM           Profile Send private message  E-mail  Edit post Reply with quote


32 threads? Does it just take the max possible, like -bounce?

Also I've made and compiled maps that span the entire radiant grid, some of which were even terrain. BSP took a while and they were broken as all hell in game, but they compiled!

I didn't have the 3 weeks to spare to compile light on them though.




Top
                 

The hell good boy
The hell good boy
Joined: 22 Jun 2011
Posts: 1622
PostPosted: 07-17-2015 04:40 AM           Profile Send private message  E-mail  Edit post Reply with quote


I do not remember any CPU for PC's that have 32 cores (the threads number). You should know how many cores your CPU actualy have and that way you should configure the threads number. It is not system's bits selection (32bit or 64bit)...



_________________
[ Quake III Arena by CZghost | Facebook | Twitter | YouTube | Google+ ]
While you feel the worst ever, turn around facing to Sun and all shadows will pass behind you.” - John Lennon


Top
                 

Cool #9
Cool #9
Joined: 01 Dec 2000
Posts: 42164
PostPosted: 07-17-2015 04:48 AM           Profile   Send private message  E-mail  Edit post Reply with quote


You can run multiple threads on a single core. It's not limited to the number of cores you have. At some point though, increasing the number of threads will actually decrease performance.




Top
                 

The hell good boy
The hell good boy
Joined: 22 Jun 2011
Posts: 1622
PostPosted: 07-17-2015 05:42 AM           Profile Send private message  E-mail  Edit post Reply with quote


Simply, the many cores you have, that number you should set up in the threads. It's just a number that tells the CPU how many cores it should use. If the number is greater than actual number of cores, it could do some kind of multitasking the compiling program itself and due to the error randomize copies of the program in the memory, which might result in decreased performance. I did not tested it, though, so I can only speculate. That might require some kind of benchmark and proper amount of time, which I do not have...



_________________
[ Quake III Arena by CZghost | Facebook | Twitter | YouTube | Google+ ]
While you feel the worst ever, turn around facing to Sun and all shadows will pass behind you.” - John Lennon


Top
                 

Insane Quaker
Insane Quaker
Joined: 05 Nov 2010
Posts: 449
PostPosted: 07-23-2015 08:59 AM           Profile Send private message  E-mail  Edit post Reply with quote


I have 32 cores on the system I'm building on. Note : it's a dual Xeon E5-2698 v3 I believe they're 16 cores each.

Also for anyone trying to compile the map, you've obviously want to change the -threads to match your system. I'm trying to get a sense of how quickly the map compiles on systems that aren't as insane as this one.




Top
                 

The hell good boy
The hell good boy
Joined: 22 Jun 2011
Posts: 1622
PostPosted: 07-23-2015 10:13 AM           Profile Send private message  E-mail  Edit post Reply with quote


I never heard about Xeon CPU. Do not mismatch CPU to System Core. CPU is hardware responsible to all program operations in your physical computer. System Core is simply program that allows using the system installed on your hard drive. I have Intel Core 2 Duo CPU installed inside my case. It has 2 cores (as the name tells; I'm not so much wealthy) - it might me in most of cases Intel or AMD, I didn't notice any other manufacturer, though...



_________________
[ Quake III Arena by CZghost | Facebook | Twitter | YouTube | Google+ ]
While you feel the worst ever, turn around facing to Sun and all shadows will pass behind you.” - John Lennon


Top
                 

Old Skool'
Old Skool'
Joined: 02 May 2002
Posts: 5215
PostPosted: 07-23-2015 05:25 PM           Profile Send private message  E-mail  Edit post Reply with quote


Why not google the name instead of just saying random stuff?
The first link says it has 16 cores..

http://ark.intel.com/products/81060/Int ... e-2_30-GHz




Top
                 

The hell good boy
The hell good boy
Joined: 22 Jun 2011
Posts: 1622
PostPosted: 07-23-2015 11:09 PM           Profile Send private message  E-mail  Edit post Reply with quote


Okay. What PC do you use if it has two CPU's? I never seen motherboard in desktop, that can hold two CPU's. Maybe some tech new on the trade :)



_________________
[ Quake III Arena by CZghost | Facebook | Twitter | YouTube | Google+ ]
While you feel the worst ever, turn around facing to Sun and all shadows will pass behind you.” - John Lennon


Top
                 

Mercenary
Mercenary
Joined: 06 Nov 2011
Posts: 240
PostPosted: 07-24-2015 04:41 AM           Profile Send private message  E-mail  Edit post Reply with quote


It's not a hidden fact that there exist dual-CPU boards, and have for years...




Top
                 

The Afflicted
The Afflicted
Joined: 11 Mar 2015
Posts: 848
PostPosted: 07-24-2015 07:49 AM           Profile Send private message  E-mail  Edit post Reply with quote


https://en.wikipedia.org/wiki/ABIT_BP6
I was going to buy this board in 2000 but had Money problems- so i didnt.
Today im happy about that... Id would just be wasted money.
EDIT: At this time i was thinking it would be cool to use 2-cpus. One for working and one for compiling. The problem was (if i remember correctly) that dual cpu´s at this time only worked right in windows NT.



_________________
Die Vitamine sind in der Dose gefangen!!!


Last edited by AndyW on 07-24-2015 07:53 AM, edited 1 time in total.

Top
                 

I'm the dude!
I'm the dude!
Joined: 04 Feb 2002
Posts: 12238
PostPosted: 07-24-2015 07:49 AM           Profile Send private message  E-mail  Edit post Reply with quote


(Psst... Just wait until he finds out about QUAD-CPU boards and parallel GPU racks... Brains splattered everywhere...)



_________________
GtkRadiant | Q3Map2 | Shader Manual


Top
                 

The Afflicted
The Afflicted
Joined: 11 Mar 2015
Posts: 848
PostPosted: 07-24-2015 08:42 AM           Profile Send private message  E-mail  Edit post Reply with quote


Anyway, i cannot see a working map file for radiant to test any stuff. I think its my newbeness... Should i just save the Code as a *.Map and compile?

EDIT: SORRY FOR THAT 2x POST, I JUST WANTED TO EDIT, DUNNO WHAT HAPPENED :/



_________________
Die Vitamine sind in der Dose gefangen!!!


Top
                 

Insane Quaker
Insane Quaker
Joined: 05 Nov 2010
Posts: 449
PostPosted: 07-24-2015 04:34 PM           Profile Send private message  E-mail  Edit post Reply with quote


@AndyW

Huh...my god github is annoying. Maybe this will work....

https://github.com/volumetricsteve/Litmus-Maps/blob/master/lighttest-small.map

You should be able to right click on that link and do "Save link as..."

@CZGhost
You're an interesting dude.




Top
                 
Quake3World.com | Forum Index | Level Editing & Modeling


Post new topic Reply to topic


cron
Quake3World.com
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group