From 7b06ac12bdc08c970d298a67d8c90778b84bcf80 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Sun, 18 Mar 2012 22:53:29 +0100 Subject: [PATCH] Some cleanup and restructuring Increased max vertex count to 10000, which will result in a dynamic vertex buffer up to 1MB --- Vocaluxe/Base/CSettings.cs | 2 +- Vocaluxe/Lib/Draw/CDirect3D.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Vocaluxe/Base/CSettings.cs b/Vocaluxe/Base/CSettings.cs index d0367a7d..9aa5d8b1 100644 --- a/Vocaluxe/Base/CSettings.cs +++ b/Vocaluxe/Base/CSettings.cs @@ -61,7 +61,7 @@ namespace Vocaluxe.Base public static int zFar = 100; public static bool bFullScreen = false; - public static int iVertexBufferElements = 1000; + public static int iVertexBufferElements = 10000; public const string sIcon = "Vocaluxe.ico"; public const string sLogo = "Logo.png"; diff --git a/Vocaluxe/Lib/Draw/CDirect3D.cs b/Vocaluxe/Lib/Draw/CDirect3D.cs index 5bb3ece1..f2a01f94 100644 --- a/Vocaluxe/Lib/Draw/CDirect3D.cs +++ b/Vocaluxe/Lib/Draw/CDirect3D.cs @@ -178,6 +178,8 @@ namespace Vocaluxe.Lib.Draw blankTexture = AddTexture(blankMap); blankMap.Dispose(); + + int size = Marshal.SizeOf(typeof(TexturedColoredVertex)); } #region form events