Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Investigate speeding uppygame.transform.scale_by #3315

Closed
Assignees
itzpr3d4t0r
Labels
@Starbuck5

Description

@Starbuck5

When I wrotescale_by andsmoothscale_by, I made them call the correspondingscale andsmoothscale by creating a python arguments tuple in the c code, and then calling the other function in C code.

It would likely be faster to not have to convert from Python args to C variables back to Python args back to C variables, rather parsing into C once and staying at that level.

Relevant code:https://github.com/pygame/pygame/blob/main/src_c/transform.c#L524-L625,https://github.com/pygame/pygame/blob/main/src_c/transform.c#L1471-L1585

Basically the idea is to make a C function common backend (takes two surfaces and a size probably?) that bothscale_by andscale can send C arguments too, which should speed upscale_by. (Same with smoothscale)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp