Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
problem with the gomoku sample
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Martin DeMello  
View profile  
 More options Oct 11, 3:53 am
From: Martin DeMello <martindeme...@gmail.com>
Date: Sun, 11 Oct 2009 13:23:49 +0530
Local: Sun, Oct 11 2009 3:53 am
Subject: problem with the gomoku sample
When I run the gomoku sample, the board isn't redrawn until both I and
the computer have played. That is, I click, nothing happens, there is
a perceptible delay while the computer thinks, and then two pieces
appear at once.Is there an issue with invalidate-view?

Running the latest jedi and gambit from git, under linux.

martin


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guillaume Cartier  
View profile  
 More options Oct 13, 2:35 pm
From: Guillaume Cartier <gcart...@jazzscheme.org>
Date: Tue, 13 Oct 2009 14:35:00 -0400
Subject: Re: problem with the gomoku sample
Strange, it works correctly (e.g. with an animation making the piece
slide down the column) on both Windows and the X11-based version in
Mac OS X.

If you want to take a look at the code (I do not have access to a pure
Linux station), all happens in the move-animation method of the
C4-Board class. It's a very simple few lines method. If your catalogs
are up-to-date, typing move-animation and pressing F12 should edit the
code.

One thing in that method is that the animation loop doesn't have any
code for slowdown. I remember when doing it that Windows's redraw-view
was slow enough as it was :-). Maybe adding a sleep in there will
help? Or maybe it is something specific to the X11 implementation that
makes the redraw-view calls not render immediatly on your X11
implementation and we are missing some X11 call to force a refresh?

Guillaume


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin DeMello  
View profile  
 More options Oct 13, 2:42 pm
From: Martin DeMello <martindeme...@gmail.com>
Date: Wed, 14 Oct 2009 00:12:21 +0530
Local: Tues, Oct 13 2009 2:42 pm
Subject: Re: problem with the gomoku sample
No, C4 works fine, it's gomoku that has the problem. Here are the
details from xorg.log, in case they help:

X.Org X Server 1.6.3.901 (1.6.4 RC 1)
Release Date: 2009-8-25
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.30-ARCH i686
Current Operating System: Linux mercury 2.6.31-ARCH #1 SMP PREEMPT Thu
Oct 8 14:35:12 CEST
2009 i686
Build Date: 04 September 2009  03:37:03PM

martin

On Wed, Oct 14, 2009 at 12:05 AM, Guillaume Cartier


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guillaume Cartier  
View profile  
 More options Oct 13, 3:23 pm
From: Guillaume Cartier <gcart...@jazzscheme.org>
Date: Tue, 13 Oct 2009 15:23:14 -0400
Local: Tues, Oct 13 2009 3:23 pm
Subject: Re: problem with the gomoku sample
Sorry about that, I had read C4 :-)

Then, everything is as it should be. It does the same thing on Windows
and Mac. I'll add a redraw-view, so apart from being nicer, no one
else will go thinking it's a platform specific bug ;-)

Thanks!

Guillaume


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin DeMello  
View profile  
 More options Oct 13, 3:29 pm
From: Martin DeMello <martindeme...@gmail.com>
Date: Wed, 14 Oct 2009 00:59:05 +0530
Local: Tues, Oct 13 2009 3:29 pm
Subject: Re: problem with the gomoku sample
ah, okay :) why does invalidate-view not cause a redraw?

martin

On Wed, Oct 14, 2009 at 12:53 AM, Guillaume Cartier


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guillaume Cartier  
View profile  
 More options Oct 13, 3:35 pm
From: Guillaume Cartier <gcart...@jazzscheme.org>
Date: Tue, 13 Oct 2009 15:35:48 -0400
Local: Tues, Oct 13 2009 3:35 pm
Subject: Re: problem with the gomoku sample
That's the difference between invalidate-view and redraw-view.

invalidate-view tells the windowing system a certain area must be
refreshed at the next paint. So multiple calls to invalidate-view will
just accumulate and the next paint will draw the union of those
invalidated areas. This is usually what we want.

redraw-view forces an immediate redraw.

Guillaume


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google