frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

What Caused Performance Issues in My Tiny RPG

https://jslegenddev.substack.com/p/what-caused-performance-issues-in
16•ibobev•3h ago

Comments

kg•2h ago
Interesting writeup. It's surprising to me that the author was experiencing such severe performance issues with relatively simple scenes, and it sounds like the performance issues still aren't completely gone. In the past I've been able to run fairly complex 2D scenes in JS+canvas so I wonder if there's some sort of fundamental performance issue lurking underneath kaplay or some other library they're using?
hinkley•1h ago
> Additionally, to not disable batching it was important that all drawSprite calls be placed together in the draw loop before rendering text with drawText calls.

Sounds like reflow problems. And like OP is slowly discovering the 200% Problem.

NuclearPM•1h ago
What is the 200% problem?
recursivecaveat•1h ago
I was able to find this comment, linking to a talk that coined(?) it. https://news.ycombinator.com/item?id=36091791 I guess in short you would say that learning a leaky simplifying abstraction actually increases the amount you have to learn.
gwbas1c•1h ago
> There weren’t that many projectiles in the first place so I felt that this would be useful later. However, considering that Chrome and Safari were struggling performance wise probably due to their garbage collector working differently, I resigned myself to implement it now.

I'm curious about actual metrics with regard to Chrome / Safari's garbage collector overhead. You still don't have a lot of "objects" in the video; when V8 is used server side it handles significantly more objects. (IE, assuming each sword is 1-5 objects.)

Are these engines canvas based, or are they generating HTML? Assuming they are generating HTML, are the elements removed from the screen when you are done with them?

In a lot of garbage collected environments, you still need to call some kind of close / remove method when you are done with some kinds of objects. (In C#, it's "Dispose.")

philipwhiuk•53m ago
> While I eventually ended up fixing the performance issues in my game, I can’t help but think of scenarios where problems could arise later that are unfixable due to limitations of the tools I’m using.

Only if you don't want to get your hands dirty with the layers you're using.

The trade-off with an abstraction layer is that every layer introduces bugs/decisions which may be a concern. But you can always (if it's open source) tweak the layer(s) below.

Moreover, why not finish the game and make your next project in something new.

codazoda•24m ago
The other tried but then chose against GemShell, but it sounds awesome for my projects. It builds files that can be as small as 3MB by using the native webview. The pro version is just $13.

The main down side is poor performance if you’re not targeting Safari and Chrome.

I hate screenshots of text

https://parkscomputing.com/page/i-hate-screenshots-of-text
100•paulmooreparks•1h ago•62 comments

High-performance 2D graphics rendering on the CPU using sparse strips [pdf]

https://github.com/LaurenzV/master-thesis/blob/main/main.pdf
142•PaulHoule•4h ago•20 comments

Unexpected things that are people

https://bengoldhaber.substack.com/p/unexpected-things-that-are-people
460•lindowe•10h ago•230 comments

Neros has raised $121M to build military drones

https://www.nytimes.com/2025/11/10/business/neros-military-drones.html
22•asix66•1h ago•37 comments

Writing your own BEAM

https://martin.janiczek.cz/2025/11/09/writing-your-own-beam.html
155•cbzbc•1d ago•35 comments

The lazy Git UI you didn't know you need

https://www.bwplotka.dev/2025/lazygit/
233•linhns•8h ago•98 comments

Unix v4 Tape Found

https://discuss.systems/@ricci/115504720054699983
204•greatquux•4d ago•26 comments

Toucan Wireless Split Keyboard with Touchpad

https://shop.beekeeb.com/products/toucan-wireless-piantor-wireless-split-keyboard-with-touchpad
25•tortilla•2h ago•18 comments

Spatial intelligence is AI’s next frontier

https://drfeifei.substack.com/p/from-words-to-worlds-spatial-intelligence
132•mkirchner•5h ago•70 comments

The physics of news, rumors, and opinions

https://arxiv.org/abs/2510.15053
32•Anon84•6d ago•10 comments

Dependent types and how to get rid of them

https://chadnauseam.com/coding/pltd/are-dependent-types-actually-erased
58•pie_flavor•1w ago•26 comments

Show HN: A free Instagram story viewer that lets you watch anonymously

https://instagram-story-viewer.org
13•deep_signal•1h ago•0 comments

Zeroing in on Zero-Point Motion Inside a Crystal

https://physics.aps.org/articles/v18/178
35•lc0_stein•5h ago•6 comments

The Paranoid Guide to Running Copilot CLI in a Secure Docker Sandbox

https://gordonbeeming.com/blog/2025-10-03/taming-the-ai-my-paranoid-guide-to-running-copilot-cli-...
10•pploug•6d ago•3 comments

Launch HN: Hypercubic (YC F25) – AI for COBOL and Mainframes

78•sai18•10h ago•49 comments

Omnilingual ASR: Advancing automatic speech recognition for 1600 languages

https://ai.meta.com/blog/omnilingual-asr-advancing-automatic-speech-recognition/?_fb_noscript=1
85•jean-•8h ago•16 comments

How to create accessible PDFs from the start

https://typst.app/blog/2025/accessible-pdf/
16•leephillips•1w ago•0 comments

Building a high-performance ticketing system with TigerBeetle

https://renerocks.ai/blog/2025-11-02--tigerfans/
95•jorangreef•3d ago•14 comments

Warren Buffett's final shareholder letter [pdf]

https://berkshirehathaway.com/news/nov1025.pdf
65•philip1209•1h ago•16 comments

Error ABI

https://matklad.github.io/2025/11/09/error-ABI.html
72•todsacerdoti•1d ago•27 comments

Benchmarking leading AI agents against Google reCAPTCHA v2

https://research.roundtable.ai/captcha-benchmarking/
99•mdahardy•10h ago•72 comments

Head in the Zed Cloud

https://maxdeviant.com/posts/2025/head-in-the-zed-cloud/
70•todsacerdoti•12h ago•16 comments

Linux in a Pixel Shader – A RISC-V Emulator for VRChat

https://blog.pimaker.at/texts/rvc1/
36•rbanffy•4h ago•10 comments

What Caused Performance Issues in My Tiny RPG

https://jslegenddev.substack.com/p/what-caused-performance-issues-in
16•ibobev•3h ago•7 comments

Registered OAuth Parameters

https://www.iana.org/assignments/oauth-parameters/oauth-parameters.xhtml#parameters
37•mooreds•6d ago•6 comments

Canadian military will rely on public servants to boost its ranks by 300k

https://ottawacitizen.com/public-service/defence-watch/canadian-military-public-servants
90•Teever•9h ago•254 comments

Pose Animator – An open source tool to bring SVG characters to life (2020)

https://blog.tensorflow.org/2020/05/pose-animator-open-source-tool-to-bring-svg-characters-to-lif...
143•jerlendds•6d ago•15 comments

Using Generative AI in Content Production

https://partnerhelp.netflixstudios.com/hc/en-us/articles/43393929218323-Using-Generative-AI-in-Co...
95•CaRDiaK•7h ago•66 comments

Rademacher Complexity and Models of Group Competition

https://www.symmetrybroken.com/group-selection/
5•riemannzeta•2h ago•0 comments

Redmond, WA, turns off Flock Safety cameras after ICE arrests

https://www.seattletimes.com/seattle-news/law-justice/redmond-turns-off-flock-safety-cameras-afte...
271•dredmorbius•8h ago•305 comments