Skip to content

Change targets fewer times in post-CGD2D CGContext #1810

Closed

Description

Changing targets in ID2D1DeviceContext causes a flush. On CGD2D, every primitive draw in CGContext on CGD2D changes targets to a temporary command list, or something like it. Because of this, #1750 either has no performance impact or actually hurts it. We need to rewrite some of the code to change targets fewer times, possibly tying this to PushBegin/PopEndDraw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions