• 4 Posts
  • 489 Comments
Joined 3 years ago
cake
Cake day: June 19th, 2023

help-circle















  • I’d try the Godot Engine if I were you, given you know how to program. If not, I recommend learning the basics of programing first.

    I don’t want to sound discouraging, but for many it’s a lengthy process to make any decent game. That’s specially true if you want to learn about creating assets. As long as you do it for fun that doesn’t matter though. Point being: don’t expect to spend a month and create a hit. Just have fun doing it.



  • Tbf, it’s not really like processors have ‘DO JS STUFF’ instructions, they are not made for one language or data format specifically of course. But ultimately, instructions are shaped by things people use.

    JSON for example requires searching strings for structural characters: ,, {, } etc. Iirc you can use VPSHUFB (‘Packed Shuffle Bytes’ or so, AVX >=2) to map 32 bytes (or 64 on AVX-512 I guess) to any structural character in one instruction. That’s quite the speedup compared to comparing all of them to all special characters one at a time, even considering SIMD kinda moves on its own pace. And it’s exactly the kind of stuff you would use in your JS engine to make parsing JSON crazy fast, even when it’s plain text, which is obviously less than ideal for a computer.

    I remember there was some instruction that was introduced specifically because of something JS does all the time tought. I forgot what it was, maybe someone else can help out.