Eigene Kampfstile je Gegner (Faustkampf, Axt-Champions), schnelleres Laden

Stand von main 975b62f0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 14:20:38 +01:00
parent e29db47b20
commit 35a5ac5032
10 changed files with 225 additions and 30 deletions

View File

@@ -132,6 +132,7 @@ namespace GladiatorIdle
_sb = new SpriteBatch(GraphicsDevice);
_fx = new BasicEffect(GraphicsDevice) { TextureEnabled = true, VertexColorEnabled = true, LightingEnabled = false, World = Matrix.Identity };
Assets.Init(GraphicsDevice);
Gfx.Model3D.PreloadAll(); // alle Figuren im Hintergrund vorbereiten
_settings = new SettingsOverlay(ToggleFullscreen)
{
ApplyGraphics = () => ApplyFrameLimit(),
@@ -645,6 +646,8 @@ namespace GladiatorIdle
protected override void Draw(GameTime gameTime)
{
_drawWatch.Restart();
if (_frames == 0 && DevShot.Active)
DevShot.Log($"timing: first frame {(DateTime.Now - System.Diagnostics.Process.GetCurrentProcess().StartTime).TotalMilliseconds:0} ms after start");
bool capturing = _capture != null;
var gd = GraphicsDevice;
int w = gd.PresentationParameters.BackBufferWidth, h = gd.PresentationParameters.BackBufferHeight;