KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

KiXtris - Arcade days revisited
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    KiXforms Forum Index -> Fun & Games
View previous topic :: View next topic  
Author Message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Tue Aug 03, 2004 8:34 am    Post subject: Reply with quote

Lonkero wrote:
well, first get it to work with any build 45 devs.


It started to work again after the second last development build where Shawn fixed the labels, which lost focus on Arrow keys, so have you tried with the latest build ?

If it works with this is there still the memory leak present ?

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Tue Aug 03, 2004 9:37 am    Post subject: Reply with quote

k, now we are talking.
I actually think the memory leak is/was not in your script but in kixforms handling the drawing.
just my quess.
obviously, to test this, I need get myself a machine with low video- and/or system-mem.
and to see the thing, you need to be there seeing it, so I need to lone a digital-video-recorder from work.

and finally I have to keep on playing until I break all the old records or find the thingie.
last time, it took approx an hour to get there.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Tue Aug 03, 2004 12:50 pm    Post subject: Reply with quote

Shocked

Allright ... I probably have a machine with this specs at work , but if I play an hour tetris I will probably get mad and sacked too Embarassed

Maybe I can reproduce this on my notebook this week Rolling Eyes

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Wed Aug 04, 2004 11:10 am    Post subject: Reply with quote

I was planning the very same.
have loned a laptop (with 256 ram and 8 video mem) to play some golf on the bed.
if I get a change, I will reproduce it.
if I can.
will need the recorder too as you won't get the problem if you don't see it.
taking printscreen does not say anything about it.

btw, I had this very same thing happening on bbchecker some 2 years ago.
back then, iirc, it was memory leak bug which shawn fixed.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jooel
KiXforms Dabbler
KiXforms Dabbler


Joined: 21 May 2006
Posts: 7

PostPosted: Fri May 26, 2006 12:35 pm    Post subject: Reply with quote

jochen, are you planning any update to the game?
it's sluggish on my new shiny laptop.
have to hit a key more than once sometimes for anything to happen.
that has caused a lot of crief in my trial of new record hights.

_________________
lonkero lost his password to unusable email account...
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Fri May 26, 2006 6:43 pm    Post subject: Reply with quote

yay,

have an updated version(private) regarding the more recent changes in label behaviour and of course the builtin image list numbers..

Will post an update (1.02) as soon I had time to get more deeper into the misbehaviour with the Highscore table subform introduced with the latest dev build... approximately on monday or tuesday.

but now for some serious rounds if online MOHAA Mr. Green

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
jooel
KiXforms Dabbler
KiXforms Dabbler


Joined: 21 May 2006
Posts: 7

PostPosted: Sat May 27, 2006 7:40 pm    Post subject: Reply with quote

the sleeps for left right and down don't do.
reduced the time of left and right to .10 and the responsiveness is lot better.
but due to the nature of sleeping, it is still slaggish when you need the best preciseness.

imho, the best way would to manage with only the keydown code and drop this:
Code:

            while $form.KeyState(37)
                $_ = Move_BrickLeft($CurBrick,$CurXpos,$CurYpos,$CurRotation)
                sleep 0.10
                $_ = execute($form.DoEvents(1))
            loop


and replace it with simple:
Code:

            if $form.KeyState(37)
                $_ = Move_BrickLeft($CurBrick,$CurXpos,$CurYpos,$CurRotation)
            endif


or does it introduce some other problems with kf2?
hmm...
it might be that keypress and repeating is not so much controllable in kf.
might ask shawn to add a property to set the keyrepeat interval.

_________________
lonkero lost his password to unusable email account...
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Sat May 27, 2006 8:23 pm    Post subject: Reply with quote

Why not just let the events happen by themselves - does this make things better or worse:

Code:

function Form_KeyDown($key)
    select
        case $key =  27 $form.Hide
        case $key = 113 $_ = Game_Start($GameInit)
        case $key =  80 $_ = Game_Pause($GamePaused)
        case $key =  32 $_ = Move_DropBrick($CurBrick,$CurXpos,$CurYpos,$CurRotation)
        case $key =  37
;            while $form.KeyState(37)
                $_ = Move_BrickLeft($CurBrick,$CurXpos,$CurYpos,$CurRotation)
;                sleep 0.15
;                $_ = execute($form.DoEvents(1))
;            loop
        case $key =  39
;            while $form.KeyState(39)
                $_ = Move_BrickRight($CurBrick,$CurXpos,$CurYpos,$CurRotation)
;                sleep 0.15
;                $_ = execute($form.DoEvents(1))
;            loop
        case $key =  38
;            while $form.KeyState(38)
                $CurRotation = Move_RotateBrick($CurBrick,$CurXpos,$CurYpos,$CurRotation)
;                sleep 0.19
;                $_ = execute($form.DoEvents(1))
;            loop
        case $key =  40 $_ = Move_FastDown($CurBrick,$CurXpos,$CurYpos,$CurRotation)
    endselect
endfunction
Back to top
View user's profile Send private message
jooel
KiXforms Dabbler
KiXforms Dabbler


Joined: 21 May 2006
Posts: 7

PostPosted: Sun May 28, 2006 2:06 am    Post subject: Reply with quote

did you change anything in there dude?
the issue is the sleepies there.
and, for jochen, we talked about this with shawn and simple timer ticking in the background could do the job properly.

not sure, but iirc, the timer nowadays adds stuff to the doevents queue and removes the problem of current sleep version which can drop keypresses from time to time.

_________________
lonkero lost his password to unusable email account...
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Mon May 29, 2006 8:42 am    Post subject: Reply with quote

Well, I thought that I handle these delays with timers, would be the most logical approach ... checking my code ...

Whoops ... only having a 'dynamic' timer for bricks 'falling' ... indeed have sleeps for keyinduced movement ... Have forgotten about that. Ah well, I wrote that thing in 10 days back in january 2004 when I had to stay in bed due to illness Sick

Will see what I can improve on that...

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Mon May 29, 2006 8:43 am    Post subject: Reply with quote

Maybe I should rework the GUI a bit too, now that the important controls support transparency Geek

We'll see...

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
jooel
KiXforms Dabbler
KiXforms Dabbler


Joined: 21 May 2006
Posts: 7

PostPosted: Mon May 29, 2006 4:25 pm    Post subject: Reply with quote

ey, any beta builds to shoot at us?
_________________
lonkero lost his password to unusable email account...
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Tue May 30, 2006 8:02 am    Post subject: Reply with quote

Nah,

not before I have this Highscore table thing fixed or proved that it is a bug with the new dev build (On hitting enter after typing the name it closes not only the HS table child but also the main form Sad )

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Tue May 30, 2006 5:53 pm    Post subject: Reply with quote

oh?
in the current version hitting any key does nothing.

from bad to worse then.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Sat Jun 17, 2006 9:30 pm    Post subject: Reply with quote

and, some days have passed.
no fixes introduced yet.

you busy or what??? Razz

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Fun & Games All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group