Skip to content

Origins of memory bug #22

@frostmorn

Description

@frostmorn

here we creating a bitmap without overdraw

primary_buffer = bmp_create(width, height, 0); /* no overdraw */

cause u've tried to remove double buffering to speed up rendering a bit, I assume that's only single buffer u've

internally nofrendo draws sprites lazy way, instead of complicating logics, we allocate more memory for bitmap, but display what is meant to be displayed.

so, u need to pass overdraw 8 here or we write too much, causing a memory bug

I think u r still alive only cause memory guard allocates few bytes more, but that doesn't allow to disable it

UPD: is about #14 actually, but I've found it too late

it won't fix frees, but it fixes that bitmap problem

some sprites are rendered outside of screen area, but more often is about one additional pixel for smooth scrolling

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions