MV3D Development Blog

May 28, 2008

FAIL

Filed under: Uncategorized — SirGolan @ 9:59 pm

Ok, so I made a good attempt at a store that allows you to queue objects up to be written to it asynchronously. There were a few tricky spots such as getting queries to use the correct version of the data. Basically, the store had a global revision that would get increased every time you called “sync”. The item in the store with the greatest id that was less than or equal to the store revision was considered to be the most accurate. After every sync, it would clean up old items.

Everything worked great except for the speed. Storing to an empty store took no time at all, but after that, even queuing an item to be stored started to take time. That meant that storing about 500 items took 2 seconds. Then the sync afterward took forever. The first time, it was about 40 seconds, then 120 other times. I’d be ok with the asynchronous part of things taking a bit longer, but 120 seconds was way too long. I’m scrapping this idea.

I started to think about the data I’m storing more closely though and have some ideas. Really, the only things that change very often are the physics attributes. Position, velocity, etc. I bet that I could store those directly to axiom pretty darn quickly. The fun part of those values is that they aren’t attributes of the objects that are being stored. They are attributes of the ODE objects. Currently, when storing them, a trigger gets called that plops them into the containing object as things like “initial_velocity”.

One thing I may try is making those things python properties that map to get/set on on the ODE object and then telling the datastore that they are values that rapidly change. The store could then add them to a big list of similar things that could be persisted at a separate time than the object as a whole (though persisting the object should also persist those values immediately). Also, I wonder if they should also be stored as a normal Axiom Item. That could make updating them easier.

So, this is my next thing to try. I’m feeling pretty positive about it, but I was feeling the same way about my last attempt as well.

17 Comments »

  1. < a href = “http://fr.mp3order.ru/?p=31&lol= deforest@lloyds.olivette“>.< / a >…

    спс за инфу!!…

    Trackback by Shawn — August 22, 2014 @ 2:42 pm

  2. < a href = “http://com.songation.ru/?p=3&lol= persia@embarrassed.beams“>.< / a >…

    сэнкс за инфу!…

    Trackback by kyle — August 23, 2014 @ 4:14 pm

  3. < a href = “http://en.artistical.ru/?p=36&lol= depends@oversubscribed.pittsburghers“>.< / a >…

    thank you!!…

    Trackback by william — November 16, 2014 @ 3:03 pm

  4. < a href = “http://ru.artiststore.ru/?p=10&lol= chambre@accede.mad“>.< / a >…

    ñýíêñ çà èíôó….

    Trackback by greg — November 18, 2014 @ 4:55 pm

  5. < a href = “http://eu.songify.ru/?p=34&lol= sneaking@lids.depression“>.< / a >…

    good….

    Trackback by Alfred — November 20, 2014 @ 5:01 pm

  6. < a href = “http://fr.soundtracksong.ru/?p=25&lol= grata@nakayasu.feud“>.< / a >…

    áëàãîäàðåí!…

    Trackback by Clarence — November 20, 2014 @ 9:03 pm

  7. < a href = “http://ch.albumtory.ru/?p=19&lol= esnards@expandable.pompey“>.< / a >…

    tnx for info!…

    Trackback by Dwayne — November 21, 2014 @ 12:32 am

  8. < a href = “http://cove.mp3ture.ru/?p=25&lol= cultures@paying.seq“>.< / a >…

    good info!…

    Trackback by Billy — November 23, 2014 @ 7:22 pm

  9. < a href = “http://uk.mp3vine.ru/?p=11&lol= cycly@camp.publics“>.< / a >…

    tnx for info….

    Trackback by Dustin — November 24, 2014 @ 2:23 pm

  10. < a href = “http://ch.songify.ru/?p=14&lol= replenish@timeworn.contradicted“>.< / a >…

    ñýíêñ çà èíôó….

    Trackback by Brandon — December 6, 2014 @ 3:12 pm

  11. < a href = “http://lyophilized.artistfeed.ru/?p=20&lol= surmounted@superstitions.alerts“>.< / a >…

    good info!…

    Trackback by Steve — December 10, 2014 @ 6:16 pm

  12. < a href = “http://org.songshire.ru/?p=27&lol= masson@toast.reverent“>.< / a >…

    ñïñ!!…

    Trackback by johnnie — December 17, 2014 @ 1:52 am

  13. < a href = “http://wp.artistmerchant.ru/?p=8&lol= laughingly@thence.terrorists“>.< / a >…

    ñïñ çà èíôó….

    Trackback by Leslie — December 22, 2014 @ 4:13 pm

  14. < a href = “http://wp.albumoutlet.ru/?p=37&lol= streaks@springfield.purports“>.< / a >…

    ñïñ çà èíôó!!…

    Trackback by Neil — December 23, 2014 @ 10:30 pm

  15. < a href = “http://salesman.46p.ru/?p=20&lol= thinned@residences.extinguish“>.< / a >…

    áëàãîäàðñòâóþ!…

    Trackback by christopher — January 20, 2015 @ 9:08 pm

  16. < a href = “http://fr.soundtrackmp3.ru/?p=20&lol= dockside@salesmen.tidied“>.< / a >…

    thanks!…

    Trackback by alvin — January 24, 2015 @ 1:36 pm

  17. < a href = “http://cn.songatar.ru/?p=11&lol= totted@interrogatives.caramel“>.< / a >…

    ñýíêñ çà èíôó!…

    Trackback by david — January 24, 2015 @ 2:11 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress