Re: [JAVA2D] Merging sysmem vram

2008-01-14 Thread Jim Graham
The per-pixel overhead of accessing VRAM would probably be more noticeable than the per-operation overhead of getting the pixels into the pipeline - unless there was a lot of overlap between the sysmem images. With little or no overlap then it might even be faster to blit the component sysmem

Re: [JAVA2D] Merging sysmem vram

2008-01-14 Thread java2d
The per-pixel overhead of accessing VRAM would probably be more noticeable than the per-operation overhead of getting the pixels into the pipeline - unless there was a lot of overlap between the sysmem images. With little or no overlap then it might even be faster to blit the

Re: [JAVA2D] Merging sysmem vram

2008-01-14 Thread Jim Graham
If VRAM is expensive to store per-pixel then the cost you pay to do the blit(s) is dependent on the number of pixels. If you are writing to the same VRAM pixels over and over because the sysmem images overlap then you pay the cost to access pixels that will later be overwritten. By contrast

[JAVA2D] Merging sysmem vram

2008-01-12 Thread java2d
Hi, I have a situation where I want to do a hybrid of vram image blits sysmem image blits. The software image blits are just pixel arrays that get drawn into a big array representing the screen (framebuffer). I use this for images I'd like to do certain operations on only doable in software.

Re: [JAVA2D] Merging sysmem vram

2008-01-12 Thread Dmitri Trembovetski
Hi, I don't quite understand the question. Why couldn't you just render all your images (the sysmem ones, which I assume are BufferedImages) and the vram-based ones (VolatileImages or cached BufferedImages?) to your back-buffer (which resides in vram)? Whatever order you draw them