Performance and optimization questions

Discuss all aspects of editing for ZDoom.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Performance and optimization questions

Postby TammySilverwolf » Mon Feb 23, 2015 2:49 pm

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
 
Joined: 22 Feb 2015

Re: Performance and optimization questions

Postby TammySilverwolf » Mon Feb 23, 2015 2:51 pm

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
TammySilverwolf
 
Joined: 22 Feb 2015

Re: Performance and optimization questions

Postby Kappes Buur » Mon Feb 23, 2015 2:57 pm

Do you get any errors when running Map Analysis (F4) ?
User avatar
Kappes Buur
 
 
 
Joined: 17 Jul 2003
Location: British Columbia Canada

Re: Performance and optimization questions

Postby Xaser » Mon Feb 23, 2015 2:58 pm

What's your graphics card? If you're using GZDoom, that's more likely the bottleneck than your CPU.
User avatar
Xaser
anarchivist
 
 
 
Joined: 20 Jul 2003

Re: Performance and optimization questions

Postby Enjay » Mon Feb 23, 2015 3:27 pm

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
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Performance and optimization questions

Postby TammySilverwolf » Mon Feb 23, 2015 3:39 pm

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
TammySilverwolf
 
Joined: 22 Feb 2015

Re: Performance and optimization questions

Postby GooberMan » Mon Feb 23, 2015 3:42 pm

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
GooberMan
Best taken in small quantities
 
Joined: 08 Aug 2003
Location: Helsinki, Finland

Re: Performance and optimization questions

Postby TammySilverwolf » Mon Feb 23, 2015 4:10 pm

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
TammySilverwolf
 
Joined: 22 Feb 2015

Re: Performance and optimization questions

Postby edward850 » Mon Feb 23, 2015 4:52 pm

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
edward850
[netcode intensifies]
 
Joined: 20 Jul 2005
Location: New Zealand

Re: Performance and optimization questions

Postby Enjay » Mon Feb 23, 2015 5:45 pm

Uploading the map would also allow people to post comparative figures to see if other peoples' frame rates are also excessively affected.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Performance and optimization questions

Postby TammySilverwolf » Mon Feb 23, 2015 7:21 pm

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.
User avatar
TammySilverwolf
 
Joined: 22 Feb 2015

Re: Performance and optimization questions

Postby Blue Shadow » Mon Feb 23, 2015 7:41 pm

There are only textures there, no map.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Performance and optimization questions

Postby TammySilverwolf » Mon Feb 23, 2015 7:52 pm

Blue Shadow wrote:There are only textures there, no map.


Sorted. Also: the map is 3 megs? Holy hell...
User avatar
TammySilverwolf
 
Joined: 22 Feb 2015

Re: Performance and optimization questions

Postby Graf Zahl » Tue Feb 24, 2015 3:13 am

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
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Performance and optimization questions

Postby edward850 » Tue Feb 24, 2015 3:15 am

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?
User avatar
edward850
[netcode intensifies]
 
Joined: 20 Jul 2005
Location: New Zealand

Next

Return to Editing (Archive)

Who is online

Users browsing this forum: Cliqz [Bot] and 2 guests