DATA-ORIENTED DESIGN The hardware will thank you.

If you wish to submit an article, please contact support@dataorienteddesign.com for details.


Lots of good resources linked from this site by Daniele Bartolini: Data Oriented Design Resources

Data-Oriented Design book (2018 version)- html with links

Data-Oriented Design book (2018 version) - PDF download (better images)

Data-Oriented Design book - 2018 paperback version (with extra chapters)

Chinese translation provided by KouZhe / Martin Cole

Data-Oriented Design book (2018 version)- html with links

Data-Oriented Design book (2018 version) - PDF download (better images)

FIRST PREV : PAGE 0 : NEXT LAST

One more reason why C++ classes can cause problems 12/11/2011:13:34:52

the static keyword has three different meanings based on how it's used.

http://coc.dev77.com/2011/10/static.html

Though this post
http://developer.amd.com/documentation/articles/pages/6212004126.aspx
doesn't appear to be written by someone who knows why these things are true, the first item:

#1. Declare as static functions that are not used outside the file where they are defined
Declaring a function as static forces an internal linkage within that file, which can improve the performance of the code. Functions that are not declared as static default to external linkage, which may inhibit certain optimizations, such as aggressive inlining, with some C/C++ compilers.

This implies that because all class member functions are global scope, they potentially suffer the same optimisation limitation. Good old C++.

Also, ignore point 5, you should always be using bitwise operators for such trivial logic.
Mastodon