Idle question about Scaling Textures:

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.
Locked
User avatar
Galaxy_Stranger
Posts: 1326
Joined: Sat Aug 16, 2003 11:42 pm
Location: Shropshire
Contact:

Idle question about Scaling Textures:

Post by Galaxy_Stranger »

Does it take any more processing power to scale a texture? I know that a few don't make any difference in-game, but if you did it for, maybe 90% of all your textures and sprites, does that hurt performance? Or does it have to calculate that value anyway, and so all you're doing is changing that number?
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Post by wildweasel »

As far as I know, all it takes is the extra memory to keep the texture loaded. But I may be wrong, considering that I'm not as in-depth with the source code (let alone have I ever opened a single source file).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

In-game it won't make any difference (if you disregard CPU cache performance.) To map a texture onto a wall the renderer has to step through the entire texture and make its calculations for each pixel to be rendered. The only difference between an unscaled and a scaled texture is the stepping factor which is proportional to the size of the texture
Locked

Return to “Editing (Archive)”