Re: minor (if strange) bug with rate(x)

"Guy K. Kloss" <guy.kloss-R/[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Organization School of Computing + Mathematical Sciences
Message-ID <[email protected]>
On Tue, 02 Nov 2010 10:54:17 Jason Morgan wrote:
> Now, the script *HAS* to run at a rate of at least 111.11 fps or it breaks
> as the streaming data starts to back up and cease to be real time.

I think in this case it would be better to evaluate using more loosely coupled 
coding, e. g. by using a producer/consumer design pattern. Have the receiving 
end run in a separate thread that can react immediately and chuck the data 
into a data structure that then can be updated in the GUI whenever needed.

Some knowledge of software engineering can be helpful here.

Guy

-- 
Guy K. Kloss
School of Computing + Mathematical  Sciences
Auckland University of Technology
Private Bag 92006, Auckland 1142
phone: +64 9 921 9999 ext. 5032
eMail: Guy.Kloss-R/[email protected]

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev

_______________________________________________
Visualpython-users mailing list
Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/visualpython-users
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAkzPYI8ACgkQpsb+VXwam+SMhgCeKzCSAzmax4CqiT/qtcW/ika8
vl0AoIEdbXcbUDfMrkkXMM+SDz0SPTV0
=qgrd
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.