ultimatepp/benchmarks/RGBAFill/main.cpp
cxl 389f16577e upp.src: reorganize (TCore... moved to archive)
git-svn-id: svn://ultimatepp.org/upp/trunk@14426 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-05-03 08:26:26 +00:00

23 lines
309 B
C++

#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
Color c = Red();
int len = 4000 * 2000;
Buffer<RGBA> b(len);
for(int i = 0; i < 10; i++) {
{
RTIMING("memsetd");
memsetd(b, *(dword*)&(c), len);
}
{
RTIMING("Fill");
Fill(b, c, len);
}
}
}