67170

来自「神经网络昆斯林的新闻组分类2006」· 代码 · 共 51 行

TXT
51
字号
Path: cantaloupe.srv.cs.cmu.edu!magnesium.club.cc.cmu.edu!news.sei.cmu.edu!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!ira.uka.de!math.fu-berlin.de!irz401!irzr17.inf.tu-dresden.de!beckFrom: beck@irzr17.inf.tu-dresden.de (Andre Beck)Newsgroups: comp.windows.xSubject: Re: Animation with XPutImage()?Date: 22 Apr 1993 13:36:19 GMTOrganization: Dept. of Computer Science, TU Dresden, Germany.Lines: 37Distribution: worldMessage-ID: <1r670j$2u4@irz401.inf.tu-dresden.de>References: <1993Apr21.154620.16330@infodev.cam.ac.uk>Reply-To: Andre_Beck@IRS.Inf.TU-Dresden.DENNTP-Posting-Host: irzr17.inf.tu-dresden.deIn article <1993Apr21.154620.16330@infodev.cam.ac.uk>, dcr@mail.ast.cam.ac.uk (Derek C. Richardson) writes:|> Two years ago I wrote a Sunview application for fast animation|> of raster files. With Sunview becoming rapidly obselete, I've|> finally decided to rewrite everything from scratch in XView.|> I put together a quick test, and I've found that XPutImage()|> is considerably slower (factor of 2 on average?) than the|> Sunview command pw_rop() which moves image data from memory|> pixrects to a canvas. This was on a Sparc IPX. It seems that:|> (1) the X protocol communication is slowing things down; or|> (2) XPutImage is inefficient...or both! My question is, whatThe protocol has to move the whole image from process memory to servermemory, this is the hog. The conversions in the XPutImage() arefast.|> is the fastest way in X11R5 to dump 8 plane image data to|> a window? Can I take advantage of the fact that the client is|> running on the same machine as the server? Or am I stuck withYes, by utilizing the MIT-SHM extension, that provides an XPutImagederivate that uses shared memory. Fine fast.|> XPutImage() (in which case I might as well give up now...)?|> No. You can still XPutImage all of the frames onto pixmaps (thus movingthem to server memory) and then replay them fastest using XCopyArea()BUT be aware, this is a major server memory bummer !--+-o-+--------------------------------------------------------------+-o-+| o |                \\\-  Brain Inside -///                       | o || o |                    ^^^^^^^^^^^^^^^                           | o || o | Andre' Beck (ABPSoft) mehl: Andre_Beck@IRS.Inf.TU-Dresden.de | o |+-o-+--------------------------------------------------------------+-o-+

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?