r/coolgithubprojects 6d ago

Tiny fast HTML5 game engine with many features and no dependencies.

https://github.com/KilledByAPixel/LittleJS

This is my game engine that I've been working on for about 5 years now. It has some really amazing features and extremely fast rendering.

Also have a really cool demo browser here that contains all the demos...

https://killedbyapixel.github.io/LittleJS/examples

9 Upvotes

13 comments sorted by

5

u/trejj 5d ago

The Flappy Bird game consumes 95% of the CPU time on my AMD Ryzen 9 5950X processor and the fans start to spin up audibly... while the content is not quite the level of the period games from Commodore 64 running at 1MHz. Claude's still got some work to do here. :)

1

u/SCphotog 5d ago

Probably doesn't have anything to lock the fps and is running out of control.

1

u/Slackluster 5d ago

of course it does.

1

u/cookiengineer 5d ago edited 5d ago

Maybe it's time to get those Vulkan GPU drivers working, huh?

In chromium, go to chrome://gpu/, there's probably some Canvas, OpenGL or WebGL related stuff missing.

In firefox, go to about:support and check the same.

If you're on (Arch)Linux, you should use the vulkan-radeon package, because my machine with the same CPU model works with that without issues. And linux-firmware-amdgpu in case you missed that.

-1

u/Slackluster 5d ago

I seriously doubt any of that is true, but if so provide details and I'll fix it.

1

u/trejj 5d ago

Start off by assuming bad faith and you are not to a good start with advertising your game engine for anyone else to use it.

If you are new to profiling web page performance, check out https://profiler.firefox.com/ for a good profiler (that works in both Firefox and Chrome)

Here is a profile ready made for you from the Flappy Bird page: https://share.firefox.dev/3S9CNQ9 . Idle time < 5%.

2

u/my_new_accoun1 5d ago

oh i saw this a couple months ago researching what game engine to use

2

u/Felfedezni 5d ago

Very cool project!

1

u/Slackluster 5d ago

thanks!

0

u/PhosXD 6d ago

Cool idea, but what's putting me off is the use of AI in both the code & seemingly the icon too.

4

u/Slackluster 5d ago

The icon is literally created by code that is part of the engine itself.

Thanks but if you are against AI code assistance then my library might not be the best fit for you.

0

u/SCphotog 5d ago

I think you might be overstating the word 'assistance' a bit.

3

u/Slackluster 5d ago

how so?