Skip to main content
GameDev.net gamedev.net
🔒 Locked

Inline assembly

Started by Jer_plusplus May 28, 2002 at 2:41 PM 1 replies 550+ views
Original Post
Jer_plusplus
Jer_plusplus
Anyone know a site tutorial for inline assembly for C++? My game's pretty much done and I'm on the optimization phase. Just have to speed it up a little. Thanks. [edited by - Jer_plusplus on May 28, 2002 3:42:27 PM]
sjelkjd
sjelkjd
Oh yeah, and lemme point out some things ANYONE that wants to optimize should look at before asm:

You did profile, right? If you''re using c++, make sure that object allocations are about what you were expecting. Don''t do stupid stuff like pass by value for non-trivial structs. Pull common definitions out of loops(don''t recompute a value in each iteration if it is constant for all the iterations). Make sure you''ve turned on compiler optimizations =)

Use display lists or glDrawElements rather than glVertex calls if you use OpenGL.

You did profile right? Profile, profile, profile. This is very important!

Topic Locked

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

Sign in to reply to this topic.