C
C#9mo ago
in$ane.

Need help with LiveChart

basically the lines instead of keeping a full lenght shrinks when reaching 5
No description
9 Replies
in$ane.
in$ane.OP9mo ago
works great when running both roblox processes since its divided in microsoft one and web version
in$ane.
in$ane.OP9mo ago
No description
in$ane.
in$ane.OP9mo ago
c#

if (mcRbx.Length > 0)
{
Process robloxProcess = mcRbx[0];
long ramUsageBytes = robloxProcess.WorkingSet64;
double ramUsageMegabytes = (double)ramUsageBytes / (1024.0 * 1024.0);

if (chart.Series.Count >= 2)
{
var ramUsageSeriesRed = (LineSeries)chart.Series[1];

if (ramUsageSeriesRed.Values.Count >= 5)
{
for (int i = 0; i < 4; i++)
{
ramUsageSeriesRed.Values[i] = ramUsageSeriesRed.Values[i + 1];
}
ramUsageSeriesRed.Values[4] = new ObservablePoint(timing, ramUsageMegabytes);
}
else
{
ramUsageSeriesRed.Values.Add(new ObservablePoint(timing, ramUsageMegabytes));
}

chart.Update();
}
else
{
AppendTextToOutputTextBox("Something went wrong while trying to display the chart");
}
}

timing++;
}
c#

if (mcRbx.Length > 0)
{
Process robloxProcess = mcRbx[0];
long ramUsageBytes = robloxProcess.WorkingSet64;
double ramUsageMegabytes = (double)ramUsageBytes / (1024.0 * 1024.0);

if (chart.Series.Count >= 2)
{
var ramUsageSeriesRed = (LineSeries)chart.Series[1];

if (ramUsageSeriesRed.Values.Count >= 5)
{
for (int i = 0; i < 4; i++)
{
ramUsageSeriesRed.Values[i] = ramUsageSeriesRed.Values[i + 1];
}
ramUsageSeriesRed.Values[4] = new ObservablePoint(timing, ramUsageMegabytes);
}
else
{
ramUsageSeriesRed.Values.Add(new ObservablePoint(timing, ramUsageMegabytes));
}

chart.Update();
}
else
{
AppendTextToOutputTextBox("Something went wrong while trying to display the chart");
}
}

timing++;
}
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
in$ane.
in$ane.OP9mo ago
ma fault @TeBeCotry now @TeBeCoany news?
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
in$ane.
in$ane.OP9mo ago
aight its fine
Want results from more Discord servers?
Add your server