Skip to main content
gamedev.net
🔒 Locked

USING asm?

Started by Xyan 2 replies 250+ views
Original Post
Xyan
Xyan
Is in-line assembly still used a lot in games to get a better performance?
Martee
Martee
It is used occasionally ... but only after optimization on the algorithm-design level, and after profiling to identify the performance critical sections of the code.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
S1CA
S1CA
In our last commercial game (Pac-Man:AIT for Hasbro/Infogrames) approximately 1% or less of the code was written in assembly language.

Assembly language itself doesn''t make your code any faster - a novice assembly coder will almost always end up with code which is slower than that generated by a decent optimising compiler.


It''s used a lot on older platforms (e.g. PlayStation 1) and handheld platforms (e.g. GBA). And special vector/graphics microcode assembler is used on PS2 and Xbox.

But PC x86 assmbly language isn''t really such a useful, saleable skill any more [and the CPU has one of the most limiting, horrible designs of any out there!!].

If you''re looking to start learning ASM, you''ll have much more fun and get a much better idea of what the majority of decent CPUs do by learning something like ARM on a GBA emulator.

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.