From a8f8095d10b679428b4746bf189ca2ce3e2f45b5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 1 Jan 2005 23:29:13 +0000 Subject: [PATCH] Don't zero RageSpriteVertex in the ctor; it's wasteful when declaring large arrays, because we almost always immediately overwrite that with real data. (We should do this for all basic RageTypes, but this one matters due to StripBuffer for hold note rendering.) --- stepmania/src/RageTypes.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/stepmania/src/RageTypes.h b/stepmania/src/RageTypes.h index 09cd09941d..017e53e02c 100644 --- a/stepmania/src/RageTypes.h +++ b/stepmania/src/RageTypes.h @@ -225,15 +225,9 @@ typedef Rect RectF; * have the same layout that D3D expects. */ struct RageSpriteVertex // has color { - /* Zero out by default. */ - RageSpriteVertex(): - p(0,0,0), - n(0,0,0), - t(0,0) - { } - RageVector3 p; // position - RageVector3 n; // normal - RageVColor c; // diffuse color + RageVector3 p; // position + RageVector3 n; // normal + RageVColor c; // diffuse color RageVector2 t; // texture coordinates };