Models or sector constructs. Which uses more resources?

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

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.
Fragger
Posts: 41
Joined: Sat Mar 19, 2022 11:59 am
Graphics Processor: Intel (Modern GZDoom)

Models or sector constructs. Which uses more resources?

Post by Fragger »

I create models for things you need more than one of, like lamps, pillars, stairs, etc. This helps avoid having to cut the same shape multiple times, and having to align textures. I use ultimate doom builder to export models I create in the map, so they look like sectors, but add no new lines. I wonder if they make a difference performance-wise.
https://i.ibb.co/74dq73n/models.png
User avatar
GelleSzebasztian
Posts: 27
Joined: Fri Mar 08, 2019 5:11 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: Models or sector constructs. Which uses more resources?

Post by GelleSzebasztian »

I think models are better for performance
7Soul
Posts: 41
Joined: Sat Mar 13, 2021 6:47 pm

Re: Models or sector constructs. Which uses more resources?

Post by 7Soul »

GZdoom seems pretty good at rendering models from my tests. I made a sphere with 1000 faces and the game didn't start to drop frames until I had hundreds of them on screen. You might want to run a similar test if you want exact numbers, using vid_fps to see the framerate
User avatar
Caligari87
Admin
Posts: 6184
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him

Re: Models or sector constructs. Which uses more resources?

Post by Caligari87 »

They hit performance differently.

The argument against using sector detailing (IMO) is that it adds geometry that has to be processed by the game sim for things like collision and dynamic light linking and BSP traversal. That impacts your single-thread CPU performance, because the level needs to be processed and uploaded to the GPU every frame. In other words, every new sector detail is potentially processing time that could be used for a complex actor's think cycle or something.

With models on the other hand, the model complexity doesn't affect the gamesim (so far as I'm aware). All that matters essentially is whether your GPU can handle the polygons, and any GPU made in the last 15+ years is usually pretty good at that.

8-)

Return to “Assets (and other stuff)”