If you can't get a simple game like that perform well even when written in JavaScript on a semi-modern PC you wouldn't be able to do it in any language. It's certainly not the issue.