If a command takes too long to execute, Vulkan drivers will think they
are inflooping and abort what they were doing.
For the simple color shader with smallish nodes, this happens around
10M instances, as tested with the output of
./tests/rendernode-create-tests
10000000 colors.node
So just limit it to way lower, so that we barely never hit it, ut still
pick a big number so this optimization stays noticable.
gsize i;
i = 1;
- for (next = op->next; next; next = next->next)
+ for (next = op->next; next && i < 10 * 1000; next = next->next)
{
if (next->op_class != op->op_class ||
next->vertex_offset != op->vertex_offset + i * stride)