Difference between revisions of "PowerOfTwo"

From polycount
Jump to: navigation, search
(restored and revised)
(non-pow2 results)
 
Line 3: Line 3:
 
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.  
 
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.  
  
A texture that is not powers of 2, like 33x24, is either padded up to the next pow2 size (probably wasting video memory) or else the game engine stops with an error message telling you it needs to be fixed.
+
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:Rendering]]
 
[[Category:Glossary]][[Category:Rendering]]

Latest revision as of 21: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