matherp Guru
 Joined: 11/12/2012 Location: United KingdomPosts: 11065 |
| Posted: 04:04pm 21 Oct 2023 |
|
|
|
Also, on the CMM2 there is a very powerful framebuffer command and the framebuffer can be as big as the memory allows. This would allow you to have the whole map drawn at all times. Then you use the command "framebuffer window" to copy the area you want to a page
"FRAMEBUFFER WINDOW x,y, page [,I or B]" "This command copies an area MM.HRES by MM.VRES from the framebuffer with top left at x,y to the page specified, The optional parameter specifies if the copy is Immediate or during frame Blanking"
You can also save and restore the framebuffer so you could, for example, save it, write changed items onto it, then window it to the screen, then restore it. All this is extremely fast as I have some highly optimised memory moving algorithms that can move 128 bytes in a single instruction Edited 2023-10-22 02:07 by matherp |