I'm doing a Gamegame in Xaml WPF, and I didn't really choose the tools and languages. It's to be hidden in a really big app with a lot of codescode.
The whole snake taketakes place in a simple xaml canvas and xaml.cs file here
https://github.com/Jebik/XAMLSnake/blob/master/XAMLSnake/XAMLSnake/XAMLSnakeWindow.xaml.cshere.
But.. Actually, the snake became really laggy after being taller than 20 part. And, and even before the speed is absolutely not constant.
I don't know a lot about game programming but i'mI'm doing software for a while now.
How can iI improve this game? Make, make speed less dependent on snake size? Make, and make it lag way less with the same computer perf?
First post on code Review feel free to comment if I must change the topic message ..
I think the more important is the paintSnake Methodmethod called every timer Tick.