C
C#10mo ago
://sarcqstic

Need help with LiveChart

basically the lines instead of keeping a full lenght shrinks when reaching 5
No description
9 Replies
://sarcqstic
://sarcqsticOP10mo ago
works great when running both roblox processes since its divided in microsoft one and web version
://sarcqstic
://sarcqsticOP10mo ago
No description
://sarcqstic
://sarcqsticOP10mo 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 User10mo ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
://sarcqstic
://sarcqsticOP10mo ago
ma fault @TeBeCotry now @TeBeCoany news?
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
://sarcqstic
://sarcqsticOP10mo ago
aight its fine
Want results from more Discord servers?
Add your server