Difference between revisions of "PowerOfTwo"

From polycount
Jump to: navigation, search
(ported powers of two)
 
(restored and revised)
(2 intermediate revisions by 2 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, 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.
 
----
 
----
[[Category:Glossary]]
+
[[Category:Glossary]][[Category:Rendering]]

Revision as of 17:55, 17 March 2015

"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, 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.


Personal tools
Namespaces

Variants
Actions
Navigation
Tools