From owner-freebsd-questions@freebsd.org Thu Aug 20 10:56:47 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A80829BD51D for ; Thu, 20 Aug 2015 10:56:47 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1rly2283.eechost.net (relay01.mail.uk1.eechost.net [217.69.40.69]) by mx1.freebsd.org (Postfix) with ESMTP id 75E8219D6 for ; Thu, 20 Aug 2015 10:56:46 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [88.151.27.41] (helo=smtp.marelmo.com) by uk1rly2283.eechost.net with esmtpa (Exim 4.72) (envelope-from ) id 1ZSMug-0000Al-BO; Thu, 20 Aug 2015 11:17:38 +0100 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.marelmo.com with smtp (Exim 4.85 (FreeBSD)) (envelope-from ) id 1ZSMuf-000P6O-TX; Thu, 20 Aug 2015 10:17:37 +0000 Date: Thu, 20 Aug 2015 11:17:35 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Cc: mexas@bris.ac.uk Subject: Re: running a graphical application over ssh - where is rendering done? Message-Id: <20150820111735.bfbba2567ac9d797e7c0eecb@sohara.org> In-Reply-To: <201508200907.t7K97ITO033940@mech-as222.men.bris.ac.uk> References: <201508200907.t7K97ITO033940@mech-as222.men.bris.ac.uk> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; amd64-portbld-freebsd10.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Auth-Info: 24227@permanet.ie (plain) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Aug 2015 10:56:47 -0000 On Thu, 20 Aug 2015 10:07:18 +0100 (BST) Anton Shterenlikht wrote: > If I conect from my laptop to a server via ssh -XY, > and then launch a 3D graphical application on the server, > and view the results back on my laptop, which side > is doing the rendering? With X the rendering is always done by the X server (the thing with the screen, keyboard and pointer) what goes over the network are commands to the server (this can include bitmaps to be placed in windows). > So does the graphical application send the data over the > network back to my laptop, where I render it using the local resources? The graphical application communicates with the display server using X11 protocol (and whatever extensions are available which includes GLX and DRI on most systems these days) the rendering is done by the display server. It doesn't have to be, the application could present a bitmap and update it leaving the server to place the bitmap into a window. A high resolution, 24 bit colour animation can eat a lot of network bandwidth done this way, and network latency can really kill interactive behaviour. > Is there any control over where the rendering is actually done? You could disable the GLX extension and see if the application has some other way of getting the data across - it is likely to be painful unless you have a very fast network, and the chances are that the application will simply fail. -- Steve O'Hara-Smith