[hlcoders] KeyValues::SaveToFile(...)

2007-06-11 Thread Oliver
-- [ Picked text/plain from multipart/alternative ] CONTEXT: In our mod, we allow users to create event-driven worlds and save their work. Saving is done with .res files and uses KeyValues::SaveToFile(...). Some of our testers created worlds with ALOT more entities than we planned for, resulting

Re: [hlcoders] KeyValues::SaveToFile(...)

2007-06-12 Thread LDuke
-- [ Picked text/plain from multipart/alternative ] You could try "rolling your own." Mani was discussing KeyValues on IRC a while back. He said once you got above a couple thousand keys they were very inefficient. If I remember the numbers right, his custom code was taking something like 3 second

Re: [hlcoders] KeyValues::SaveToFile(...)

2007-06-12 Thread LDuke
-- [ Picked text/plain from multipart/alternative ] Also, here's some info he posted on the allied modders forums: [QUOTE] More news regarding performance hit with KeyValues class. It seems that the performance of the KeyValues class is not as good as I thought. The time to read seems to go up ex

Re: [hlcoders] KeyValues::SaveToFile(...)

2007-06-12 Thread Oliver
-- [ Picked text/plain from multipart/alternative ] Yup, those numbers synch up with what we are seeing. Back to the drawing board :) Thanks. On 6/12/07, LDuke <[EMAIL PROTECTED]> wrote: > > -- > [ Picked text/plain from multipart/alternative ] > Also, here's some info he posted on the allied mo