Idle question about Scaling Textures:
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.
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.
- Galaxy_Stranger
- Posts: 1326
- Joined: Sat Aug 16, 2003 11:42 pm
- Location: Shropshire
- Contact:
Idle question about Scaling Textures:
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?
- 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:
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
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