mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
23 lines
309 B
C++
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);
|
|
}
|
|
}
|
|
}
|