From owner-freebsd-multimedia Tue Nov 13 6:33:57 2001 Delivered-To: freebsd-multimedia@freebsd.org Received: from smtpproxy1.mitre.org (smtpproxy1.mitre.org [129.83.20.90]) by hub.freebsd.org (Postfix) with ESMTP id 878F337B419 for ; Tue, 13 Nov 2001 06:33:50 -0800 (PST) Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58]) by smtpproxy1.mitre.org (8.11.3/8.11.3) with ESMTP id fADEXS826240; Tue, 13 Nov 2001 09:33:28 -0500 (EST) Received: from MAILHUB2 (mailhub2.mitre.org [129.83.221.18]) by smtpsrv1.mitre.org (8.11.3/8.11.3) with ESMTP id fADEXMs28535; Tue, 13 Nov 2001 09:33:22 -0500 (EST) Received: from dhcp-105-164.mitre.org (128.29.105.164) by mailhub2.mitre.org with SMTP id 8340778; Tue, 13 Nov 2001 09:33:21 -0500 Message-ID: <3BF12F30.F4171C10@mitre.org> Date: Tue, 13 Nov 2001 09:33:21 -0500 From: Jason Andresen Organization: The MITRE Corporation X-Mailer: Mozilla 4.75 [en]C-20000818M (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: John Utz Cc: Erich Zigler , t6nu , multimedia@freebsd.org Subject: Re: Choppy picture with Sawfish+GNOME and fxtv References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org John Utz wrote: > > i am utterly astounded that this works! > > On Sat, 10 Nov 2001, Erich Zigler wrote: > > > > type this hack into shell... and try fxtv again. (it did work for me :) > > > echo "int main() { while(1) {} return 0;}" > hack.c && gcc hack.c -o hack && ./hack & > > > > Awesome it worked. Any idea why this works? :) > > > > Also, is it supposed to chew up 90%+ of the CPU? > > yup! this code is a permanent while loop. it has no function calls in it, > so the OS is never free to choose to defer running the function so that > it can run something else. (more or less! this is an overly simple > explanation of multitasking :-) ) > > why hogging up the computer could possibly fix fxtv on sawfish is utterly > incomprehensible. > > it's sort of like saying 'here put these huge bags of concrete in your > honda, it will accelerate faster and give you a higher top speed'.... I wondier if this is due to Gnome's "desktop management" stuff. It may be seeing the XFree window over the desktop and doing something strange. If you run XFree with TWM and then cover up the fxtv window partially do you get the same choppyness? -- \ |_ _|__ __|_ \ __| Jason Andresen jandrese@mitre.org |\/ | | | / _| Network and Distributed Systems Engineer _| _|___| _| _|_\___| Office: 703-883-7755 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message