Opened 4 years ago

Closed 4 years ago

#16148 closed optimization (fixed)

Improve performance of DrawBitmap() for 32-bit bitmaps

Reported by: awi Owned by: VZ
Priority: normal Milestone:
Component: wxMSW Version: dev-latest
Keywords: DrawBitmap alpha Cc:
Blocked By: Blocking:
Patch: yes


In reference to performance issue reported here ticket:14403#comment:39 there is possible to improve a little the performance of drawing by modifying loops.
Results are as follows:

Target         Drawing time [ms]
bitmap       Currently  Fixed loop
24-bit DIB   0.037      0.037
32-bit DIB   0.069      0.053
32-Bit DDB   0.362      0.345

Patch is attached.

Attachments (1)

alphablt.patch download (829 bytes) - added by awi 4 years ago.
Modified loops in AlphaBlt()

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by awi

Modified loops in AlphaBlt()

comment:1 Changed 4 years ago by awi

  • Type changed from defect to optimization

comment:2 Changed 4 years ago by VZ

  • Owner set to VZ
  • Resolution set to fixed
  • Status changed from new to closed

In 76414:

Micro optimization of checking for alpha transparency.

Use faster accessors to the image size.

Closes #16148.

Note: See TracTickets for help on using tickets.