-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pixellation using push with love.js #19
Comments
Hello @coltonoscopy , thanks for opening an issue! I have noticed this too a while back, when making a LÖVE-to-web tool. It seems related to love.js, as it was reported in this forum thread. Basically, canvases have artifacts on some GPUs (for example MacBook and iPad). You can check this for yourself in this example. On the left are particles rendered with canvas, and on the right without canvas. |
Hey @Ulydev, thank you so much for the fast response! :) I'm indeed on a Macbook, and the btw I'm using your library for all of the games I use in a course I teach at Harvard on game dev (cs50.github.io/games); really an amazing library. Thank you for making it and maintaining it! :D |
@coltonoscopy, you're welcome! |
@Ulydev all thanks go to you! :) Really makes teaching in the context of retro-style games much easier! |
@Ulydev PS, given your experience with Original repo ( |
Hello @coltonoscopy, sorry for the delay. There indeed seems to be a performance issue in the love.js version of your game. I must admit it's been a while since I used LÖVE, but here are some first guesses. Good luck! Please let me know if you have any other questions 😄 |
Hey @Ulydev, thanks so much for the response! I'll try both of those techniques. Offhand, do you know what would cause performance differences between love.js and native LÖVE in the context of draw calls such that a SpriteBatch would indeed make such a difference on the same machine? Does WebGL suffer more from that particular bottleneck? |
Hello @coltonoscopy, |
Hello!
Not sure if this is on
push
's part orlove.js
's, but it seems that usingpush
while building a game with the main branch, 0.10.2, oflove.js
(https://github.com/TannerRogalsky/love.js/) produces an odd pixellated/dithering effect with any game, with the exception of some solid colors, like pure red; see below screenshots for a basic example of a Pong game with a greyish background color:Without
push
:With
push
:Happen to know what's causing and what the easiest fix would be? Thanks so much!
The text was updated successfully, but these errors were encountered: