Skip to content

mvcExpress LIVE is coming!

by Deril on April 22nd, 2012

Hi,

I want to announce development of “mvcExpress LIVE”.

It is a fork of mvcExpress framework that will add extra tools to handle real time action in applications. Like action in games, animatios, 3d rendering.

Problem – MVC patern works great for application that changes from state to state, but it is not good for something that needs rapid state change, like moving game elements or animations or other render processes.

Usually those things treated as black boxes in mvc, and handled internally.

I want to change that. I want those objects be not in that black box. I want them to be part of framework!

For that new actor will be added – processor.

Processor will have very simple job – run processes!

I will start by defining requirements:

  • it should not critically break MVC, or if it breaks it – have well error checking.
  • Items from proxies and mediators can be implemented to be handled by processes. (you will be able to see easily which items can be processed.)
  • Adding – removing process support should be simple re-factoring step.
  • process will do one and only on thing – run same actions over array of same type items. This array of items will be MAIN array.
  • processes will be able to get SUPPORT arrays of items to be used with MAIN array.
  • link beat-wean MAIN and  SUPPORT array will have to be defined. Error will be thrown if that definition is missing.
  • process will be running based on Timer intervals or on enter frame events.
  • processes will be able to run() other processes.
  • processes will have stop/play (reverse? ) functions..
  • it will be possible to add/remove items(by name) that are handled by processes easily.
  • it will be possible to send messages from process.

To be honest I am not sure if I will succeed to meet those requirements. What I am essentially doing is breaking MVC pattern, breaking it not critically, or manageable - and exchanging it to practical solutions that should benefit game making and other application with lot of live action.

This is my first prototype, everytihng you see is defined in MVC, but animated in processes : mvcExpressLive-prototype1.swf
(I don’t like implementation)

If I succeed – we will have 2 frameworks : ”mvcExpress” and “mvcExpress live”.

Share on TwitterSubmit to redditDigg ThisSave on DeliciousShare on TumblrSubmit to StumbleUponShare on LinkedInShare on Facebook+1

From → mvcExpress live, news

8 Comments
  1. Mark permalink

    Hi.I looked mvcExpressLive-prototype1.swf and noticed that memory everything is leaked.Why this happens?

    • Hi, memory should be growing because new objects are constantly created, at 1300 -1400 object it should peek and stop growing. Because objects start dyeing.. :) I think they have 150 life points or something, and with every hit with yellow rectangle they lose 1 life – till they get red and are removed.

      So memory should stop growing then amount of objects stops growing… or… maybe I just left memory leak while doing prototype, in any case you can be sure that in framework level there will be no memory leaks.. ;)

      Thanks for question!

  2. Did you test it on release or debug flash player? On Latest release witch Chrome all seems to be pretty solid. Flash Player Debug on my FF had issues and lags indeed.

    Good job Deril, looking forward to final release, If you need help to assets what it should be, please point to some case scenarios. What would you like to test it against? Performance, integration or unit tests?

    • Good point! it is compiled for debug player.. :) Thanks! (Recompiled and updated. It cut swf file in half!)

      Unit testing will go in as soon as I manage to glue it all in the comprehensive way. I will be testing for control and stability first. Performance test will come last and will be more of a test how well I succeeded in combining performance with control.

      I don’t think ANY framework is worth using if you lose control. I could just fall back to old plain OOP then..

  3. Steve permalink

    Do you have the source for this demo?

    • Sure!

      it is in: https://github.com/MindScriptAct/mvcExpress-framework

      in mvcExpress-live-prototype1 branch.

      Main class : com.mindScriptAct.liveSample/LiveAppTest.as

      Proceed on your own risk.. :)
      it is not documented, implementation is not intuitive.

      That was first sample… and I don’t like results. I have couple of ideas haw it could be improved but currently I am trying to approach problem from a different angle. (I am creating 3d application for real world project test scenario).

      If you have any questions, or want help of explanations – feel free to ask.

  4. Alex permalink

    Hello, Deril!
    When should we wait mvcExpress LIVE release?
    Thank you.

    • Hello,

      it looks like it will take a while. I tried to approach the problem from architectural view point, and designed couple of scenarios.. but all of them have problem.
      (basically what I have to do.. is damage MVC, to allow live action game to run fast… and not break it too much too keep things under control(or at least with good debugging/testing workflow scenarios)..) this is not easy to achieve.

      I now approach it from different angle – practical angle. I am creating small 3d application and will try my theoretical approaches on it. This may take a while as am learning Away3d on the go.

      Thanks for interest, it is very motivating!

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS