h0la
h0la
CC#
Created by h0la on 11/6/2023 in #help
✅ WPF vs. Avalonia
Alrighty, thanks!
6 replies
CC#
Created by h0la on 6/12/2023 in #help
❔ Error using XAMLReader.Load()
7 replies
CC#
Created by h0la on 5/18/2023 in #help
❔ WPF Canvas starts getting choppy and laggy after drawing a long line
I just feel like it gets too laggy too fast and that I've missed something
27 replies
CC#
Created by h0la on 5/18/2023 in #help
❔ WPF Canvas starts getting choppy and laggy after drawing a long line
I battled this by removing points that were too close to eachother
27 replies
CC#
Created by h0la on 5/18/2023 in #help
❔ WPF Canvas starts getting choppy and laggy after drawing a long line
27 replies
CC#
Created by h0la on 5/18/2023 in #help
❔ WPF Canvas starts getting choppy and laggy after drawing a long line
and after you let go of the mouse those lines get deleted and this function is called to create a single smoothed path
27 replies
CC#
Created by h0la on 5/18/2023 in #help
❔ WPF Canvas starts getting choppy and laggy after drawing a long line
private void Draw(MouseEventArgs e)
{

SolidColorBrush brush = new(Services.brushColor);
Line line = new()
{
Stroke = brush,
StrokeThickness = Services.brushSize,
StrokeEndLineCap = PenLineCap.Round,
StrokeStartLineCap = PenLineCap.Round,
X1 = currentPoint.X,
Y1 = currentPoint.Y,
X2 = e.GetPosition(this).X,
Y2 = e.GetPosition(this).Y
};

points.Add(new Point(e.GetPosition(this).X, e.GetPosition(this).Y));

currentPoint = e.GetPosition(this);

sketchCanvas.Children.Add(line);
}
private void Draw(MouseEventArgs e)
{

SolidColorBrush brush = new(Services.brushColor);
Line line = new()
{
Stroke = brush,
StrokeThickness = Services.brushSize,
StrokeEndLineCap = PenLineCap.Round,
StrokeStartLineCap = PenLineCap.Round,
X1 = currentPoint.X,
Y1 = currentPoint.Y,
X2 = e.GetPosition(this).X,
Y2 = e.GetPosition(this).Y
};

points.Add(new Point(e.GetPosition(this).X, e.GetPosition(this).Y));

currentPoint = e.GetPosition(this);

sketchCanvas.Children.Add(line);
}
this function gets called every MouseMove event
27 replies
CC#
Created by h0la on 5/18/2023 in #help
❔ WPF Canvas starts getting choppy and laggy after drawing a long line
and yes that is me releasing the mouse
27 replies
CC#
Created by h0la on 5/18/2023 in #help
❔ WPF Canvas starts getting choppy and laggy after drawing a long line
if you follow the behaviour of the line being drawn you can see it start off very responsive and smooth and then start slacking behind and becoming slower
27 replies
CC#
Created by h0la on 1/7/2023 in #help
Editing a file triggers a ransomware antivirus alert
alright
16 replies
CC#
Created by h0la on 1/7/2023 in #help
Editing a file triggers a ransomware antivirus alert
16 replies
CC#
Created by h0la on 1/7/2023 in #help
Editing a file triggers a ransomware antivirus alert
16 replies
CC#
Created by h0la on 1/7/2023 in #help
Editing a file triggers a ransomware antivirus alert
Ah I meant that the program I am coding is getting falsely flagged as ransomware
16 replies
CC#
Created by h0la on 1/5/2023 in #help
✅ Names take a long time or restart to update on code side in VSCode
it seems like that's my only option tbh, I'll just do that, thanks a bunch!
17 replies
CC#
Created by h0la on 1/5/2023 in #help
✅ Names take a long time or restart to update on code side in VSCode
comfort mostly
17 replies
CC#
Created by h0la on 1/5/2023 in #help
✅ Names take a long time or restart to update on code side in VSCode
disabled most of the extensions and still slow, perhaps it really is just VSCode
17 replies
CC#
Created by h0la on 1/5/2023 in #help
✅ Names take a long time or restart to update on code side in VSCode
I am certain it's not due to a slow CPU, what would be the best way to check if there are any slow extensions?
17 replies