Help with my first map Created 4 years ago2020-04-07 15:22:50 UTC by Manguitom Manguitom

Created 4 years ago2020-04-07 15:22:50 UTC by Manguitom Manguitom

Posted 4 years ago2020-04-07 15:22:50 UTC Post #344037
Hello there! I'm new to mapmaking and I've had a lot time spent with JACK map editor these days, trying to recreate my school to play a little with my friends online multiplayer (mind you, I've finished school 10 years ago so this won't have any repercussion). The problem is I first started compiling through JACK and told it was not wise to, so I'm now using Compilator 3 BETA 1.50, even though I think the map now runs smoother as soon as the guy with the worst graphics wise pc joins he starts lagging, I can't seem to improve performance on my map, I've read a lot but seems my map got a bit too complex for the engine to run at a reasonable speed.
Is there anyone here who can throw me a hand?

I've uloaded the map so you can take a look, hope I got every file you might need.
Currently I'm using JACK editor (steam version), then compile with Compilator 3 BETA 1.50 + v34 Vluzacn's Map Compile Tools.
I would like to submit the entire log but I'll go beyond characters limit on this post, sorry!

Thanks a lot! This means so much to me as it'll make quarantine easier on some of my most strained friends.
Posted 4 years ago2020-04-08 16:28:44 UTC Post #344066
Please delete this thread as it is on the wrong forum I believe!
Posted 4 years ago2020-04-08 17:17:41 UTC Post #344068
This one is actually in the right place. :P
monster_urby monster_urbyGoldsourcerer
Posted 3 years ago2020-04-24 08:50:56 UTC Post #344136
First things first.. Go and get these compilers..

https://twhl.info/thread/view/17830

Then you can use Jack with said compilers.. A batch. file of course always compiles faster but seeing how you're building a supposedly smaller mp map I doubt that it is anywhere near being complex (didn't check your uploaded file).

If your map lags - it is usually due to micro leaks your current compilers won't even detect. One more reason to use the compilers I recommended they got a very good detection system to find such micro leaks. Another benefit is that you get more texture cache and a higher entity limit not to mention several new useful toys to play with for casting shadows and light effects.

the second reason coming to mind could be an absurd amount of flickering lights. During my mod developments I often noticed that my maps lagged also. It often got fixed when conducing a full compile (not a fast compile).

Another aspect is: To conduct your mapping smart and clean. Example below. chaotic mapping where rooms and such aren't separated properly of one another can result in increased compile times and lesser Frames rates per seconds ingame. That being said avoid hallow cubes outside your actual map. Rather go and search/fix the leaks should you have any. Example below:
Mapping real life
There are not many successful real life places that have been mapped. That is because in reality, where we can see is defined by solid objects. In real life we can't see through doors.... But in Half-Life, the Engine can. Actually the engine can see through any entity and will texture the brushes behind it because it thinks you can too! Engine Visibility throughout your map is defined by solid objects. Once again you have to map as though you can see what the Engine can see. Big outdoor places are ok... as long as you don't put anything in them, which sort of defeats the purpose really.
Let's imagine we are in the yard looking back in the window. We can see some of the room. The Engine can see all of the room and some of the hallway because it is trying to show you what you might see if you move. If you have an outdoor map, them most of the inside of your building will be visible by the engine! The more textured surfaces the engine has to render, the slower your map will play.
Mapping for the Engine
As I mentioned earlier, placing a solid (non-entity) brush will block the engine from "seeing" what is on the other side. Well almost. The brush must touch the roof and floor in most cases. But the thing to keep in mind is that if you can see large distances in your map as the player, then the Engine can see more. Most of the large-scale scenic stuff in Half-Life was done through cut-scenes... and a lot of behind the scenes trickery. Ever wondered why you haven't seen a CS_superbowl map? I am not saying it can not be done, I am saying that the engine isn't up to it.

Never texture walls on sides or faces where you the player can't see instead I recommend to texture any walls and segments outside players range with the null texture. Ever wondered why some placed items cause ugly shadows.. Select these brushes and turn them to func_wall or func_detail. You can even group some brushes together to safe up on entity space. In some cases doing that can fix bugs or actually increase the performance as entities are getting compiled differently than solid world brushes.
Posted 3 years ago2020-04-24 11:26:15 UTC Post #344137
Feel free to visit the TWHL Discord if nobody here at the forums is really responding.
"If your map lags - it is usually due to micro leaks your current compilers won't even detect. One more reason to use the compilers I recommended they got a very good detection system to find such micro leaks."
I'm sorry, but this is stupid. If any sort of leak happened, HLVIS and HLRAD would likely crash. In fact, HLBSP could probably crash first because some of the coordinates in the .prt file would go to infinity.
If your map lags, then your map is either not optimised at all or it's just so complicated and full of details in one big area that you can't optimise it (which is bad design).

In other words, if you're using a big hollow box around your map (as a sky "box"), then the engine is gonna render almost the entire damn map, and that is just too much for weak PCs. Maybe you are also compiling with fast VIS, which also leads to the engine rendering everything at once.

Also yes, flickering lights do cause lag because the lightmap data has to get modified by the CPU, then reuploaded to the GPU every 0.1s, which is horrible for performance.
"Ever wondered why you haven't seen a CS_superbowl map? I am not saying it can not be done, I am saying that the engine isn't up to it."
The engine can be up to it if you do it right.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 3 years ago2020-04-26 09:49:13 UTC Post #344144
Nope it's not @admer456.. Here speaks experience... Having used the original Valve compilers back then and then switched to these they did indeed discover leaks that the other compilers didn't detect back at the day. And the maps did compile perfectly back then. Otherwise you're right of course. In most cases it didn't work. But there were maps that compiled fine (not modified) and suddenly after swapping to Vluzacn's Half-Life Tools v34 compilers half my mod maps were full of leaks.
Posted 3 years ago2020-04-26 16:42:39 UTC Post #344147
This was true back in the day, but it's definitely not true nowadays, that's my point. If someone doesn't use VHLT, they're basically shooting themselves in the foot. :P
Admer456 Admer456If it ain't broken, don't fox it!
You must be logged in to post a response.