Sample breakout game has poor performance #2304
Unanswered
MorganeLeCaignec
asked this question in
Q&A
Replies: 1 comment 10 replies
-
@QuentinLeCaignec That doesn't seem right at all! I don't think you are doing anything wrong, this should work as you expect. I'm not able to reproduce this on my hardware using your sample repo. (On my older Surface Book 2 I'm running 60fps pretty consistently) Can you collect some information for me:
|
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello !
I thought I'd try this out to see if I liked it, as I'm interested in making simple games with TS.
My plan was to use Vite, and Vue on top of the excalibur app to handle UI, possibly to add complex and highly interactive UI elements (I'd also want to try integrating an excalibur game inside of a more "normal" webpage).
I made a simple little test with a Vue 3 + Vite + TS template, added excalibur and pasted the code from the sample breakout game (https://github.com/excaliburjs/sample-breakout/blob/main/src/main.ts#L17) in my main.ts.
I don't initialize/start the Vue App, only testing excalibur for now, and I serve with Vite in dev mode.
It seems to have pretty poor performances on both chrome and firefox. Even with browser devtools and excalibur-devtools off, it will not be able to maintain a constant 60 fps, constantly dropping to 50, 40, and will have seemingly random drops to 30 or lower even when the ball is just moving with no collision happening. Regularly the frames will drop at the wrong time and the ball will phase or half-phase through the paddle or the screen walls. For some reason on firefox with debug toggled, the performances are abysmal, hovering around 30 FPS at best.
On both chrome and firefox, I open a private window with no extensions.
Here's the repo : https://gitlab.com/QuentinLeCaignec/some-text-adventure
This doesn't seem normal for the most basic example game, especially the tutorial game shown by the docs. Am I doing something wrong? Is this normal?
Beta Was this translation helpful? Give feedback.
All reactions