Skip to content

Instantly share code, notes, and snippets.

@LaylBongers
Created October 3, 2014 15:54
Show Gist options
  • Select an option

  • Save LaylBongers/d835526aa46f1a5fae82 to your computer and use it in GitHub Desktop.

Select an option

Save LaylBongers/d835526aa46f1a5fae82 to your computer and use it in GitHub Desktop.
using System;
using WarpEngine;
namespace Warpcore
{
public sealed class Client : Game
{
public Client()
{
Loops.Add(new Loop(Update, TimeSpan.FromSeconds(1.0/100.0)));
// In practice we'll render at the VSync FPS, but this sets a nice just in case minimum
Loops.Add(new Loop(Render, TimeSpan.FromSeconds(1.0/1000.0)));
}
private void Update(TimeSpan delta)
{
}
private void Render(TimeSpan delta)
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment