gresm

Results 58 comments of gresm
trafficstars

> ``SDL_GetPixelFormatDetails`` and ``SDL_GetSurfaceClipRect`` need to be error checked, for one thing. Oh right... ``SDL_GetSurfaceClipRect`` errors only when invalid surface is passes, so I assumed that it would be checked,...

Mark the corners of your sprite and you'll see why it behaves like this. @ScriptLineStudios I have no clue how would you like it to work. Cut out the parts...

Sounds like an interesting idea, but few things to note: - This is purely SDL3 feature. - How the API would look like - decorators sound sensible. - A simple...

> Aye. It looked like there was interest in eventually upgrading PyGame to use SDL3, based on a number of [issues tagged "sdl3"](https://github.com/pygame-community/pygame-ce/issues?q=is%3Aopen+is%3Aissue+label%3Asdl3). There is, but it'll take time to...

> This will either segfault immediately at ``ren = "huh?"`` or it will (very rarely) continue but vomit a nasty Fatal Python error at the end of the script and...

Hey @lordmauve > Also, Pygame is not floating point throughout. Vector composes really badly with other parts of Pygame Try ``pygame.FRect`` instead. > I've never used ``Vector`` in my games...

FRects were added in ``pygame-ce 2.2.0``. Mutable vectors have a lot of proper applications where it's more sensible to use them over immutable ones (for example, sprite positions), so I...

Windows 11: I have been running this version: ``` import pygame while True: pygame.display.set_mode((800, 600), flags=pygame.SCALED) ``` For a few hours, but without any visible increased memory usage. (Maybe it's...