Quote:
Originally Posted by InsomniacPro
What is your definition of efficiency?
|
Productive.
I don't know if you load the drops on startup or if you query them on runtime (i hope you don't)
We have it ordered by the MobName on startup, we parse all the ini files on startup and when we add new ones - thanks to filesystemwatcher - we have them loaded instantly on runtime. Its very easy to add drops that way, its a fast process of creating the files and we can tweak the droprates based on many factors without having to restart / reload the entire drop database.
On runtime, it takes the cached copies that are stored in ram so there is really no overhead - and ofc - no sql queries because I *** **** hate SQL and its really not required for a conquer server. Our Ini class is cached and reads asynchronusly so again, little overhead. Everything is stored on a ramdisk so even without caching it would be insanely fast