08.11.2010, 14:54
Thanks for your post,I really appreciate it.I actually learned how to use bitwise operations from your code optimisation thread.You do a great job.
Guess I made a mistake,I thought 2^10 is 512 instead of 1024.That's why I used 511 / 0x1FF instead of 1023 / 0x3FF.
if (!(0 <= iIndex < sizeof (IDEData)))[/PAWN][/quote]
Is it actually faster? I have seen this method in your code optimisation thread.However,I never really used it.
Uhm.Yeah :-O
I get what you mean.I already wanted to make a list which gives you easy access to the LOD parent of a model.
The problem was,the only way to get the LOD parent of an object is going through all the IPL files,see if there is a pointer to a specific IPL line ( not -1 ) and look up which modelid is used in this speicific IPL line. I was too lazy to script something for this :/.
Quote:
You shift values by 10 and 20, but then mask them by 1FF when you could use 3FF and get a max view distance of 1023 without modifying any other code.
|
if (!(0 <= iIndex < sizeof (IDEData)))[/PAWN][/quote]
Is it actually faster? I have seen this method in your code optimisation thread.However,I never really used it.
Uhm.Yeah :-O
Quote:
The one thing I've thought of before is a LOD lookup table so where LOD versions of models are available, creating an object will also create a LOD version with a much higher view distance in the streamer.
|
The problem was,the only way to get the LOD parent of an object is going through all the IPL files,see if there is a pointer to a specific IPL line ( not -1 ) and look up which modelid is used in this speicific IPL line. I was too lazy to script something for this :/.