Performance and optimization questions

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
TammySilverwolf
Posts: 27
Joined: Sun Feb 22, 2015 2:12 pm

Performance and optimization questions

Post by TammySilverwolf »

Hey hey,

I'm not sure how else to put this, so I'm going to probably make a mess of it. I'm working with GZDOOM and ZDOOM, trying to make a map and I keep running into some pretty awesome frame drops with my geometry. I know there's a fair bit of it on display but I don't have any idea what the engine is rendering so I can fix it! Are there any commands I can use to find out? an r_drawtris or something like that?

This is more Gzdoom related, really, but even the editor chugs. >_>

I've tried removing the dynamic lights and cutting the linedefs to the bone, but I still drop into single digit FPS land. Is this a case where I'd be better off modeling the stuff and just keeping the geometry simple or am I doing something wrong here?

I'm using UDMF format (which is amazing, btw) and my computer is a quad core AMD A4. The worst drops appear when looking from the back to the front, obviously, but it never seems to get much over 20 fps.

Area in editor (Top down)
Spoiler:
Area in editor
Spoiler:
Area in game
Spoiler:
I don't /mind/ redesigning it now that I know what I'm doing, but I'd love to be able to know how to prevent these problems in the future. Any help would be appreciated!
User avatar
TammySilverwolf
Posts: 27
Joined: Sun Feb 22, 2015 2:12 pm

Re: Performance and optimization questions

Post by TammySilverwolf »

I should have mentioned, removing all the dynamic lights and the slopes in the background there had exactly 2 FPS impact, so I'm not sure it's just the insanity that is my mapping.
User avatar
Kappes Buur
 
 
Posts: 4120
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: Performance and optimization questions

Post by Kappes Buur »

Do you get any errors when running Map Analysis (F4) ?
User avatar
Xaser
 
 
Posts: 10772
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Performance and optimization questions

Post by Xaser »

What's your graphics card? If you're using GZDoom, that's more likely the bottleneck than your CPU.
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Performance and optimization questions

Post by Enjay »

There is quite a bit of detail there but it doesn't look to be an excessively detailed area so I'm surprised you are getting particularly big FPS drops.
User avatar
TammySilverwolf
Posts: 27
Joined: Sun Feb 22, 2015 2:12 pm

Re: Performance and optimization questions

Post by TammySilverwolf »

I fixed any issues that the map had, yeah.


my video (the chip in here is an APU which has the video and cpu on the same die) is apparent an AMD Radeon HD 8330
User avatar
GooberMan
Posts: 1336
Joined: Fri Aug 08, 2003 12:57 am
Location: Helsinki, Finland

Re: Performance and optimization questions

Post by GooberMan »

I'd suspect the slowdown is the BSP there. You've got quite a few slope sectors.

Isn't there some console command to dump those stats?
User avatar
TammySilverwolf
Posts: 27
Joined: Sun Feb 22, 2015 2:12 pm

Re: Performance and optimization questions

Post by TammySilverwolf »

I'm not sure! This was part of my question, just what are the commands for map debugging? :P

Suppose I can just rejigger the slops and not loose much... hm
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: Performance and optimization questions

Post by edward850 »

Xaser wrote:What's your graphics card? If you're using GZDoom, that's more likely the bottleneck than your CPU.
Other way round. GZDooms bottleneck is the CPUs ability to construct and upload the frame.
TammySilverwolf wrote:I'm not sure! This was part of my question, just what are the commands for map debugging?
You don't debug the map, you analyse frame statistics. That's a little harder to do if you already don't know what you're looking for, and would be so much easier for someone else to do if you actually uploaded the map.
User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Performance and optimization questions

Post by Enjay »

Uploading the map would also allow people to post comparative figures to see if other peoples' frame rates are also excessively affected.
User avatar
TammySilverwolf
Posts: 27
Joined: Sun Feb 22, 2015 2:12 pm

Re: Performance and optimization questions

Post by TammySilverwolf »

Sure,

here we are: Link

Very early WIP, so it's really rough... Which is why I said it's not an issue to tear it apart and start over.

Thanks so much for your time!
Last edited by TammySilverwolf on Mon Feb 23, 2015 7:51 pm, edited 1 time in total.
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: Performance and optimization questions

Post by Blue Shadow »

There are only textures there, no map.
User avatar
TammySilverwolf
Posts: 27
Joined: Sun Feb 22, 2015 2:12 pm

Re: Performance and optimization questions

Post by TammySilverwolf »

Blue Shadow wrote:There are only textures there, no map.
Sorted. Also: the map is 3 megs? Holy hell...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Performance and optimization questions

Post by Graf Zahl »

When starting the map with vsync off and fps display on it shows 156 fps for me.
To see what is wrong, go to the console, type 'stat rendertimes', start the map again and make a screenshot. This looks like your CPU is either too weak or somehow fooled to run in low power mode. It's the only explanation I have.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: Performance and optimization questions

Post by edward850 »

TammySilverwolf wrote:the map is 3 megs? Holy hell...
That's because UDMF maps are intended to be compressed, seeing as they are plain text.

Edit: The scene is expensive, but it sure isn't single digit FPS.
Image
Looks like uploading the frame indeed takes the longest time. Do you happen to be using GZDoom 1.8, rather than 2.1?
Locked

Return to “Editing (Archive)”