[Include] gStream Helper
#2

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.
Quote:
Originally Posted by ******
Посмотреть сообщение
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.
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.

Quote:
Originally Posted by ******
Посмотреть сообщение
if (IDEData[iIndex][IDE_iDistance] == DEFAULT_NOT_VALID)
Uhm.Yeah :-O

Quote:
Originally Posted by ******
Посмотреть сообщение
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.
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 :/.
Reply


Messages In This Thread
gStream Helper - by Goldkiller - 08.11.2010, 14:01
Re: gStream Helper - by Goldkiller - 08.11.2010, 14:54
Re: gStream Helper - by Goldkiller - 09.11.2010, 17:54
Re: gStream Helper - by Goldkiller - 09.11.2010, 18:45
Re: gStream Helper - by Baltazar - 12.03.2013, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)