Alberto
Alberto
I ran a quick test using this code: ```Python from random import randint from timeit import timeit import pygame def randcol(): return randint(0, 255), randint(0, 255), randint(0, 255) pygame.init() screen...
Some other test with a different number of blit calls per test: Old 500000 - 17.158649900000455 - 16.998320700000477 - 17.023041999998895 New 500000 - 3.9034018000002106 - 3.8267964999995456 - 3.8662202000014076 Old 1...
Ok that looks like another improvement but aren't we worried about that 5-6X slowdown with even blits?
I'll have the honor!
@MyreMylar Yes sure, i already tried messing up with the code and ended up with a working function, but i still have to check whether the returned list of rects...
What i intended to have is a somewhat simpler to use function that is at least equal if not a little better than blits().
> I've tried implementing it but there must be something i'm missing here... ```C {"ublits", (PyCFunction)surf_ublits, METH_FASTCALL, DOC_SURFACEUBLITS}, ... static PyObject * surf_ublits(pgSurfaceObject *self, PyObject *args) { ... if (!PyArg_ParseTuple(args,...
> If you're trying to do a "restricted" blit function for higher performance, you could remove keyword arguments and use METH_FASTCALL as your type of python function. (Removing keywords because...
how didn't i think about it? well i resolved it but i can't join now, i'll be very busy for the next 4 hours approx. so if you're still on...
Hi and thank you for your suggestion. First and foremost, i want to be clear, this is not meant to be an inclusive function, but its purpose is specific and...