Results 1 to 18 of 18

Thread: [RESOLVED] Optimized Cut & Copy in Cairo [L-Plate Learner Edition]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member -Corso->'s Avatar
    Join Date
    Oct 2021
    Posts
    379

    Resolved [RESOLVED] Optimized Cut & Copy in Cairo [L-Plate Learner Edition]

    Hi all, another question for the Cairo Squad.

    I'm wondering if Cairo has an optimized way to do this operation, speedily ?.

    Name:  Cutout Section.jpg
Views: 470
Size:  54.0 KB

    Currently I'm using the Cairo.Imagelist to rebuild larger than needed 'chunks' of 2.5D terrain surfaces that are 'already' drawn elsewhere. I do this to 'clean' areas, but it seems like a terrible way of reprinting sections of the screen, especially since I already have an identical copy of the completed terrain sitting waiting on another surface.

    I'm wondering if I can trim out a section of the waiting surface to place it upon the final surface. I have to do this hundreds to thousands of times per second, so copying over the entire surface via a mask or end region I expect would be hideously slow.

    The image above is simplified but conveys what is happening. I have to chuck on gradient surfaces (several), and non-uniform lighting operations too (all sitting in complete form on other waiting surfaces).

    Thanks for any advice.
    Last edited by -Corso->; Dec 28th, 2021 at 08:03 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width