Re: Rob: More trouble with PD-source

new topic     » goto parent     » topic index » view thread      » older message » newer message

Vincent wrote:
> Hmm... why does this code work with EXW + trace(3) and "exw eu netradio" +
> trace(3)?:
> }}}
<eucode>
> StatusProc = routine_id("StatusProc")
> chan = BASS_StreamCreateURL(urls[event], 0, BASS_STREAM_STATUS, StatusProc, 0)
> </eucode>
{{{

> but not this:
> }}}
<eucode>
> chan = BASS_StreamCreateURL(urls[event], 0, BASS_STREAM_STATUS,
> routine_id("StatusProc"), 0)
> </eucode>
{{{

> Eu has to assign "StatusProc" before "chan" with each consecutive call to the
> "DialogProc" subroutine, right? How would this be so different?

By defining a private variable "StatusProc", you are causing
the routine id of "StatusProc" to be -1. This turns off the 
(frequent) callback to StatusProc(), so things work much better. 
I think I mentioned already that things worked much better 
when that callback was turned off. 

> > By the way, I won two games of Language War last night
> > using multi *tasking* in the official ex.exe (C backend) interpreter.
> > So that project is coming along well. Maybe I'll release something
> > in a week or so.
> 
> Kewl... are you planning to offer the gameplay recording feature too?

Yes. The video capture option doesn't consume much time.
You can't even tell it's runnning. A time-shared 
task writes frames of data to disk when there's nothing else to do. 
A profile_time on Language War shows that about 90% of the time it's just
sitting in the scheduler waiting for the clock to advance so
it can run the next task.
 
> BTW, Open Watcom 1.4 is at it's second release candidate. It should be
> released
> in time for Eu 3.0 building; perhaps you then can remove or comment out all
> the Watcom 10.6 bug workaround code, that might be hindering back-end
> performance
> and efficency a bit? 

I hope so. There are a few places where I lose a tiny bit of
performance in order to work around a Watcom bug.

> Did you consider sacrificing a bit more memory for better
> recursive performance with single task applications/libraries?

Yes, I'll probably do that.
I want to make sure everything is rock solid before
I start inserting small optimizations.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu