Ask coding questions

← Back to all posts
Console Lagging
CosmoCat19 (8)

So, I decided to recreate the game snake in the C# console. However, I didn't get very far in (I haven't added any fruits or growing yet) before I noticed the console starting to lag tremendously. Is there any way to optimize the code I have so far and make the game playable? Thanks!
-- Cosmo

Answered by Coder100 (18109) [earned 5 cycles]
View Answer
Coder100 (18109)

Your code is completely valid. Why it is slow is because your internet is probably slow, or you have a slow computer.

Close all other tabs, and get a faster internet

CosmoCat19 (8)

@Coder100 Yeah, both my school WiFi and chromebook are garbage, so that makes sense.

Coder100 (18109)

xd i feel you man

same here @CosmoCat19