Cosmos icon indicating copy to clipboard operation
Cosmos copied to clipboard

Canvas.DrawImage is slow

Open RetroAndDev opened this issue 4 years ago • 5 comments

Area of Cosmos - What area of Cosmos are we dealing with?

GUI

Expected Behaviour - What do you think that should happen?

Canvas.DrawImage() is very slow

Actual Behaviour - What unexpectedly happens?

Image drawing is very slow

Reproduction - How did you get this error to appear?

use Canvas.DrawImage();

Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?

The laset version

Hello! Canvas.DrawImage is slow (line by line loading), how i can made faster ? (The image : https://raw.githubusercontent.com/ArtGo-Devloppper/ArtOS-Bootable/master/yosemitefull.bmp)

RetroAndDev avatar Jan 16 '21 15:01 RetroAndDev

I assume you are using VMWare, on VBE we already have a more optimised version which copies the memory in lines. The best speed up for VMWare would be to also add an implementation to SVGACanvas/Driver which draws lines of image at once by copying between the memory locations directly.

quajak avatar Jan 16 '21 18:01 quajak

Okay, but how i can made this ?

RetroAndDev avatar Jan 17 '21 10:01 RetroAndDev

Stale issue message

github-actions[bot] avatar Apr 26 '21 01:04 github-actions[bot]

The best way would be to use the MemoryOperations.Fill

quajak avatar Apr 29 '21 20:04 quajak

This should be fixed in the devkit #1959

quajak avatar Dec 01 '21 11:12 quajak

@quajak feel like this can be closed now ^^'>

ascpixi avatar Feb 22 '23 13:02 ascpixi