Steveo@Posted: Mon May 30, 2005 6:29 am :
Iam having performance problems with my ctf map iam working on. I now have the map how i want it and was getting ready to beta test it. I packed it up into a pk4 file and tried it in the game. When i play it in multiplayer mode like its supposed to be played, It laggs everywhere. But the weird thing is I aslo have a single player player start in the map also to test things out when i change them. when I load up my map in single player mode I dont get one inch of lagg on my map. I have also tried it on my other pc and it still gives out the same results.

Thank you and I hope some one can help me.



DoV_Tomas@Posted: Wed Jun 01, 2005 4:32 pm :
Very sorry no answer and it's rare for someone not to respond to posts. Likely the chaps don't know. Likewise for me as I've never made a MP map.



Mordenkainen@Posted: Wed Jun 01, 2005 4:49 pm :
Steveo wrote:
Iam having performance problems with my ctf map iam working on. I now have the map how i want it and was getting ready to beta test it. I packed it up into a pk4 file and tried it in the game. When i play it in multiplayer mode like its supposed to be played, It laggs everywhere. But the weird thing is I aslo have a single player player start in the map also to test things out when i change them. when I load up my map in single player mode I dont get one inch of lagg on my map. I have also tried it on my other pc and it still gives out the same results.


Load one of the D3 MP maps. Does it lag too?



Steveo@Posted: Wed Jun 01, 2005 5:35 pm :
I tried loading up the normal ctf maps to and it dont lagg at all on them.



DoV_Tomas@Posted: Wed Jun 01, 2005 5:44 pm :
Have you optimized the map? How is the light and tris count, and are you using portals properly? Still doesn't explain why testing the map in SP mode runs okay while MP doesn't.



Steveo@Posted: Wed Jun 01, 2005 5:53 pm :
Ok i know I optimized the light but Iam still kinda new to mapping so I dont know everything. can you tell me about tris counts and vis portals?I probably know what they are but i just dont know the correct words for them. :wink: I have put nodraw brushes between every room and such.



efx@Posted: Wed Jun 01, 2005 6:15 pm :
Two questions regarding your nodraw brushes:

1, Have you made sure that they seal the doorways or whatever completely?

2, Make sure that at least one of the sides of that nodraw brush carries the vis-portal texture. I believe you can find it under "common". Don't be alarmed if doom says it can't find it, it'll still work.

To me that sounds like it should fix your problem.



Steveo@Posted: Wed Jun 01, 2005 6:19 pm :
efx wrote:
Two questions regarding your nodraw brushes:

1, Have you made sure that they seal the doorways or whatever completely?

2, Make sure that at least one of the sides of that nodraw brush carries the vis-portal texture. I believe you can find it under "common". Don't be alarmed if doom says it can't find it, it'll still work.

To me that sounds like it should fix your problem.


Ok I have the no draw brushes completely covering the door ways but I dont have the vis-portal texture on one side of any of them. I'll go do this and tell everyone the result.



Daniel Schimmer@Posted: Wed Jun 01, 2005 6:30 pm :
Steveo wrote:
efx wrote:
Two questions regarding your nodraw brushes:

1, Have you made sure that they seal the doorways or whatever completely?

2, Make sure that at least one of the sides of that nodraw brush carries the vis-portal texture. I believe you can find it under "common". Don't be alarmed if doom says it can't find it, it'll still work.

To me that sounds like it should fix your problem.


Ok I have the no draw brushes completely covering the door ways but I dont have the vis-portal texture on one side of any of them. I'll go do this and tell everyone the result.


If your willing, you could send me the map and i could have a look and make some suggestions. PM me.



DoV_Tomas@Posted: Wed Jun 01, 2005 6:53 pm :
I think we draw closer to the problem and it is pretty clear you may be green as to the whole concept of tris count and the correct use of portals. I would search the dbase here using "portals" or "visportals" as a search word. There are a couple of great tutes floating around. It cannot be stressed enough that to make maps play at a reasonable frame rate you absolutely must have a grip on tris count.

Start the game, load your map and type this into the console: r_showtris 2. To turn if off type r_showtris 0. Doing that will show you all the polygons in your map and what you are looking for is polygons being drawn that are outside of the player's view - for example the next room. If you can see every room when standing in a "closed room", chances are you've not used portals correctly.

Portals act like dynamic walls that seal rooms that are seperated by entities that do not seal - such as func_statics with models (doors) - but they are invisible. Also you can type this into the console: r_showportals 1 (r_showportals 0 to turn it off). Once you do that the portals - if they're working properly - will be outline in green or red. They turn green when opened, turn red when closed. If you use the r_showportals 1 command and your portals aren't showing up, you've not set them up properly. Basically you're trying to limit what the engine has to render at any given time. Controlling the rendered tris, overlapping lights and portals are the key to making a smooth playing map.



Steveo@Posted: Wed Jun 01, 2005 7:08 pm :
adding vis portal to one side of every nodraw brush fixed the problem. It now runs perfectly fine. I have mapped more for quake 3 arena so iam still not as familiar with doom 3 as iam quake 3. But now that I know this I will know from now on. I want to thank everyone for helping me I appreciate it.

Thanks again :wink: