Difference between revisions of "PowerOfTwo"

From polycount
Jump to: navigation, search
(ported powers of two)
 
(non-pow2 results)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
"Power of 2" means the numbers 2, 4, 8, 16, 32, 64, 128, 256, 512, etc. Also called pow2 or n<sup>2</sup>.
{{:[[OutOfDate]]}}
+
  
= Power of 2 =
+
Usually this is used to describe the [[Texture]] sizes that a [[:Category:GameEngines|game engine]] requires in order to make good use of video [[Memory]]. An example pow2 texture size would be 32x64.
  
The numbers 2, 4, 8, 16, 32, 64, 128, 256, 512, etc. Usually this is used to describe the [[Texture|texture]] sizes that an [[Engine|engine]] requires in order to make good use of video [[Memory|memory]]. An example texture size would be 32x64. Textures that are not in powers of 2, like 33x24, would probably cause the engine to run slower or maybe crash.
+
A texture that is not powers of 2 (e.g. 33x24) may be simply loaded into graphics memory as-is (on modern hardware), or it has to be padded up to the next pow2 size (to work with texture compression), or the game engine may stop with an error message that it needs to be fixed.
 
----
 
----
[[Category:Glossary]]
+
[[Category:Glossary]][[Category:Rendering]]

Latest revision as of 20:16, 28 May 2020

"Power of 2" means the numbers 2, 4, 8, 16, 32, 64, 128, 256, 512, etc. Also called pow2 or n2.

Usually this is used to describe the Texture sizes that a game engine requires in order to make good use of video Memory. An example pow2 texture size would be 32x64.

A texture that is not powers of 2 (e.g. 33x24) may be simply loaded into graphics memory as-is (on modern hardware), or it has to be padded up to the next pow2 size (to work with texture compression), or the game engine may stop with an error message that it needs to be fixed.


Personal tools
Namespaces

Variants
Actions
Navigation
Tools