add fps util for pxl8 in lua
This commit is contained in:
parent
7dd32ec453
commit
5637fa18c8
9 changed files with 57 additions and 76 deletions
|
|
@ -61,9 +61,6 @@ static void* sdl3_create(pxl8_color_mode mode, pxl8_resolution resolution,
|
|||
pxl8_error("Failed to set vsync: %s", SDL_GetError());
|
||||
}
|
||||
|
||||
SDL_SetRenderLogicalPresentation(ctx->renderer, fb_w, fb_h,
|
||||
SDL_LOGICAL_PRESENTATION_INTEGER_SCALE);
|
||||
|
||||
ctx->framebuffer_texture = SDL_CreateTexture(ctx->renderer,
|
||||
SDL_PIXELFORMAT_RGBA32,
|
||||
SDL_TEXTUREACCESS_STREAMING,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue