[haXe] Timer and RAM
Arturo Nunez
juan.nunez at ic.ac.uk
Mon Aug 7 01:15:43 CEST 2006
Hello:
Not the answer but yes a similar problems in terms of performance of the
the generated SWF..
My application simply loads a file and after parsing it draws something
on the screen.. I do the redraw after checking the ID of the file has
changed if not... nothing.. I use
- private function mainLoop ():Void {etc etc } which is called from:
Object.onEnterFrame = mainLopp
Now as Ryszard I have some performance issues, as the amount of Load in
the computer considerably increases with the generated SWF.. I was first
thinking it was due to the "reading" of the file, but after reading this
email I wonder if this is "Normal" ???
Cheers,
On Sun, Aug 06, 2006 at 09:33:39PM +0200, Rysiek wrote:
> Hi List.
> I'm writing an app which is to present the status of some devices.
> It's status is stored in mysql. Every 10 sec. I call from swf ( using
> LoadVars ) php file and load back results. Everything works ok but
> every time Timer executes, the amount of memory used by IE increases
> constantly. Is it normal bahaviour ? Here is a part of my app, which
> consumes the memory too.
>
> import haxe.Timer ;
> import flash.external.ExternalInterface ;
>
> class Interfejs
> {
> static var interval : haxe.Timer ;
> static function main()
> {
> interval= new haxe.Timer(50) ;
> interval.run = function()
> {
> var teraz : Date ;
> teraz = Date.now() ;
> ExternalInterface.call("Now_", teraz.toString() ) ; }
> }
> }
>
> "ExternalInterface.call("Now", teraz.toString() ) " calls JavaScript
> function 'Now_" which writes current time on the page. For testing
> purpose timeout here is set to 50 ms.
>
> Next question:
> A part of code :
>
> var sender:LoadVars = new LoadVars();
> sender.element = "" ;
>
> Compiling with option 'flash-strict' complaints that 'sender has
> not field element'. Without this option compiles properly. Any
> sugestions ?
>
> Regards
> Ryszard Ganczaryk
>
> --
> haXe - an open source web programming language
> http://haxe.org
--
---------------------------------------------------------------------
J. Arturo Nunez | "Truth has no special time
Intelligent Systems and Networks | of its own. Its hour is
Electrical and Electronic Engineering | now--always."
Imperial College | Albert Schweitzer
London UK | (1875-1965)
+44 (20) 7594 6330 (O) |
---------------------------------------------------------------------
More information about the Haxe
mailing list