DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2359 Version: 2.0-current Hi Ben. I noticed it in that very demo. After some time, I realized that this is probably a Linux issue, and may even be related to the kernel version. I'm using SuSE 10 Linux and whatever kernel that is. Here's what I noticed (and what improves with a 'usleeep()' inserted from time to time. The two displays burst at intervals of about half a second (might be lesss, but the bursts were noticeable). With the kernel's version of a "check()" call (usleep()), they both stream evenly. Again, if you don't try the usleep() you won't see the difference, and so, no. I don't have any code that shows this clearly -- other than my own system which now uses a timer so that the usleep() is only called every 60 milliseconds. First of all, though, just try adding a usleep(1) in the lock() function for test, then rerun the demo. Remove it if you don't see a difference. Then if you do see a difference, store the last time and only call usleep if some portion of a "timeslice" has expired. I used 60 milliseconds because this is about half the usual timeslice I noticed in Linux. There WILL be a performance hit, in terms of speed. If this is unacceptable, that's your call. But for a hit of about 5-10% in speed, the display looks much much smoother, which is what you'd expect from a multitasking/threaded application. Hey! It's great to see someone working on 2.0. Thanks!! :-) I think you're going to love it, Ben, once you get to where things start working. I did. It's got tons of great stuff in it that I'd like to see in a 3.x someday. If you don't have a copy of my 2.x you can install a sandboxed version using this. I tried to keep my fltk-X2 fairly compatible with 2.x back then. http://rainbowsally.net/tkf/fltk-x2/FLTK-X2-Personal-2010-12-17.tar.gz I just tried that link and it appears to be good, but if you have anyh problems and if you want a copy, let me know and I'll re-upload it somewhere folks can get it. One feature you're sure to want is the test/demo code. It's all in the 2.0 dialect. Themes also worked, such as they were. But having working code to start with should make it a hell of a lot easier to get the other stuff working the way you want it. You're a courageous fellow, Ben. Thanks again. It will get better... Link: http://www.fltk.org/str.php?L2359 Version: 2.0-current _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
