Skip to content

Fix early buffer flush in image painter - #1542

Open
RblSb wants to merge 1 commit into
Kode:mainfrom
RblSb:patch-1
Open

RblSb wants to merge 1 commit into
Kode:mainfrom
RblSb:patch-1

Conversation

@RblSb

@RblSb RblSb commented Sep 11, 2026

Copy link
Copy Markdown
Contributor
for (i in 0...300)
	g.drawImage(Assets.images.img, 0, i);
for (i in 0...1000)
	g.drawImage(Assets.images.img2, 500, i / 100);

Currently instead of drawing 2 drawcalls with 1800 + 6000 triangles, g2 draws 3 with 1800 + 5394 + 606, because first drawImage call moved bufferStart, and since bufferIndex is not relative to bufferStart, buffer end check is incorrect.

Also drawImageScale is unused, so i removed it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant