Opened 8 months ago

Closed 7 months 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

Description

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 8 months ago.
Modified loops in AlphaBlt()

Download all attachments as: .zip

Change History (3)

Changed 8 months ago by awi

Modified loops in AlphaBlt()

comment:1 Changed 8 months ago by awi

  • Type changed from defect to optimization

comment:2 Changed 7 months 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.