What's the difference between all the available IdFactories? Why Bitset and not another as default?
Thx ^^
IdFactory
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Aikimaniac
- L2j Inner Circle
- Posts: 3048
- Joined: Sun Aug 07, 2005 11:42 pm
- Location: Slovakia
Re: IdFactory
Others should be removed, best performance is Bitset...the rest is crap...Migi wrote:What's the difference between all the available IdFactories? Why Bitset and not another as default?
Thx ^^
- Pere
- Posts: 400
- Joined: Sat Jan 05, 2008 11:09 am
- Location: Catalunya, Berguedà
Re: IdFactory
Ok, thank you!
By the way, my idfactory began to be crazy... It says negative free ids on start :S
And when I check the DB there are negative ids, which don't create any warning. Why? Because of overflow.
I cannot understand how the *** my idfactory overflowed, it didn't reach more than 5kk objects on db... and integer max value is at 2.1kkk :S
Well, as I said, thank you ^^
By the way, my idfactory began to be crazy... It says negative free ids on start :S
And when I check the DB there are negative ids, which don't create any warning. Why? Because of overflow.
I cannot understand how the *** my idfactory overflowed, it didn't reach more than 5kk objects on db... and integer max value is at 2.1kkk :S
Well, as I said, thank you ^^
Bones tardes amics meus tots!
- JIV
- L2j Veteran
- Posts: 1882
- Joined: Sun Jan 06, 2008 8:17 pm
- Location: Slovakia
- Contact:
Re: IdFactory
Code: Select all
public static final int FIRST_OID = 0x10000000; public static final int LAST_OID = 0x7FFFFFFF; public static final int FREE_OBJECT_ID_SIZE = LAST_OID - FIRST_OID;
- Pere
- Posts: 400
- Joined: Sat Jan 05, 2008 11:09 am
- Location: Catalunya, Berguedà
Re: IdFactory
of course not, but my idfactory skipped thousands and millions of ids (I don't know why) 

Bones tardes amics meus tots!