[Mesa-dev] [Bug 99319] godot engine poor performance

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 9 12:23:31 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99319

--- Comment #4 from Vladislav Egorov <vegorov180 at gmail.com> ---
(In reply to Thomas Helland from comment #2)
> A small update: It appears we are spending all of the time walking in a
> for-loop at the bottom of context_cleanup:
> 
> for (i = 0; i < ARRAY_SIZE(cs->buffer_indices_hashlist); i++) {
>    cs->buffer_indices_hashlist[i] = -1;
> }

Interesting fact that GCC with -O2 doesn't optimize loops like that to memcpy
or memset, even if they are large. It needs additional flag
-ftree-loop-distribute-patterns from -O3 or even -mtune options to do it.
Proof: https://godbolt.org/g/VwbSqK

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170109/96a34084/attachment.html>


More information about the mesa-dev mailing list