From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 5 Dec 2008 10:27:14 -0800 From: "Russ Cox" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> Subject: Re: [9fans] image/memimage speed In-Reply-To: <39cb2be32e592403f7336c6200cf56a3@quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <13426df10812042239pde2100dw696049def0160c4a@mail.gmail.com> <39cb2be32e592403f7336c6200cf56a3@quanstro.net> Topicbox-Message-UUID: 5ad833a8-ead4-11e9-9d60-3106f5b1d025 > i don't think this is the case. if you recall from the original > post, i have used the pat registers to set up memory types on > a pcie card and i do see dramatic speedups for drawing to > the screen. however, reading from the screen is just as slow > as before. I think the problem of > can you explain what the downside of double-buffering > would be? it's not like the days where we asked, hey buddy, > have you got 4 megs to spare? you mean using a soft screen (a kernel copy of the video memory, so that you only ever write to the video card). double buffering is switching the screen between two different copies of the screen image, only ever drawing on the one that is not currently on the screen. in answer to your question, that might be a fine thing to do now that memory is more plentiful. no one has been bothered enough to do it. you would lose the hardware acceleration for fill and scroll, since you can't have the video card editing the frame buffer directly--your copy would be out of sync. on the other hand, writes are so fast that it probably wouldn't matter. the win for hw scroll is not reading from the frame buffer. i think it's a pretty trivial change, since the relevant code is all there for non-direct-mapped frame buffers anyway. go for it. russ