Skip to content

Commit

Permalink
chore: clear screen on start
Browse files Browse the repository at this point in the history
  • Loading branch information
NRG-Drink committed Mar 24, 2024
1 parent a493ccd commit f4b1c9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions NRG.Matrix.App/NRG.Matrix.App/Matrix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public void Enter()
objectAddRate ??= e => e / 200.0f;
try
{
Console.Clear();
var sw = Stopwatch.StartNew();
while (_isEndlessMode || sw.Elapsed < time)
{
Expand Down Expand Up @@ -48,9 +49,7 @@ private void AddObjects(int width)
return;
}

//_objectBuildup += width / 200.0f;
_objectBuildup += objectAddRate!(width);

var objectsToAdd = (int)_objectBuildup;
for (int i = 0; i < objectsToAdd; i++)
{
Expand Down
12 changes: 0 additions & 12 deletions NRG.Matrix.App/NRG.Matrix.App/Program.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
<<<<<<< HEAD
namespace NRG.Matrix.App;
=======
using CommandLine;
using Microsoft.CodeAnalysis.CSharp.Scripting;
using NRG.Matrix.App.Models;

namespace NRG.Matrix.App;
>>>>>>> feat/config-via-args

internal class Program
{
static void Main(string[] args)
{
<<<<<<< HEAD
// Benchmark Mode.
//var matrix = new Matrix(delay: 80, time: new TimeSpan(0, 0, 20));
var matrix = new Matrix();
matrix.Enter();
=======
Parser.Default.ParseArguments<Option>(args)
.WithParsed(arg =>
{
Expand All @@ -38,6 +27,5 @@ static void Main(string[] args)
var matrix = new Matrix();
matrix.Enter();
});
>>>>>>> feat/config-via-args
}
}

0 comments on commit f4b1c9c

Please sign in to comment.