Skip to content

Instantly share code, notes, and snippets.

@LaylBongers
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

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

Select an option

Save LaylBongers/d1fc86ecb46127041116 to your computer and use it in GitHub Desktop.
using System;
using WarpEngine;
namespace Warpcore
{
public sealed class Client : Game
{
private Loop _updateLoop;
public Client()
{
_updateLoop = StartLoop(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
StartLoop(Render, TimeSpan.FromSeconds(1.0/1000.0));
}
private void Update(TimeSpan delta)
{
_updateLoop.Stop();
}
private void Render(TimeSpan delta)
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment