Re:Grind – A first person shooter for Amiga 500
by VWWHFSfQ on Wednesday October 11, 2023 @06:12PM
(#37850967)
Are hackers optimizing? Or are they writing the same code they always did but now code-generation targeting these platforms is optimizing?
[ Parent
| on HN ]
Re:Grind – A first person shooter for Amiga 500
by tuukkah on Wednesday October 11, 2023 @06:41PM
(#37851304)
There isn't much the compiler can optimize on such a simple CPU as the m68k when the source is simple C or hand-optimized assembler code to begin with.
Re:Grind – A first person shooter for Amiga 500
by mike_hock on Wednesday October 11, 2023 @07:20PM
(#37851634)
Contemporary compilers definitely do a lot of CPU-agnostic optimizations that ye olde compilers weren't capable of. The only new CPU features that fundamentally change this are vector instructions, and compilers still suck at autovectorization.
Re:Grind – A first person shooter for Amiga 500
by gpderetta on Thursday October 12, 2023 @06:41AM
(#37855488)
Contemporary compilers are "optimized" to optimize for superscalar, fully pipelined, out of order cpus with plenty of ram and caches. Literally nothing in common with a 68k. Also modern compilers wouldn't even know how to produce code for the amiga coprocessors.
This engine very likely is written in hand optimized, clock-exact, asm.
Re:Grind – A first person shooter for Amiga 500
by alxmdev on Wednesday October 11, 2023 @06:26PM
(#37851129)
Tooling and code generation improvements no doubt help a lot, but IMO those improvements must be coupled with creative manual optimizations in order to get something like this out of a platform that was tailored for rectangular 2D bitmaps.
Re:Grind – A first person shooter for Amiga 500
by VWWHFSfQ on Wednesday October 11, 2023 @06:34PM
(#37851213)
It's extremely impressive in any case.
Re:Grind – A first person shooter for Amiga 500
by ekianjo on Wednesday October 11, 2023 @06:21PM
(#37851076)
Optimization and hardware tricks
Re:Grind – A first person shooter for Amiga 500
by wk_end on Wednesday October 11, 2023 @08:13PM
(#37852018)
This was almost definitely written in asm, no code generation involved.
Re:Grind – A first person shooter for Amiga 500
by tom_ on Wednesday October 11, 2023 @09:52PM
(#37852596)
They are optimizing, probably. Thanks to the internet, knowledge sharing is substantially simplified compared to the 1990s, and it's massively easier to find people to collaborate with. Hard to understate how difficult it was to find useful info back in the day.
Additionally, anybody that grew up coding on the Amiga has had 30, 35 years to think about it since! - and they are probably still young enough (or, more accurately, probably not yet properly old enough...) that time has, for now, added more to their abilities than it has taken away.
And: modern PCs are ridiculously fast! A table or routine that would have taken your Amiga days to produce, even assuming you'd have considered the idea feasible in the first place ("b-but - you'd need a temporary 512 MByte table for that!!") can be generated in 5 minutes with some python code on your 10 year old laptop.