Skip to content

Fewer cgo calls #2

Description

@james4k

Many of the cgo calls that just mutate state could be turned into pure Go calls (probably with unsafe), allowing them to be avoid the cost of cgocalls, and potentially be inlined. The majority of the cost in the bgfx-17-drawstress example is cgo overhead.

Tests should check for the expected side effects by comparing the entire internal C structure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions