TextRegionUtil region cache collisions for short strings
Posted by Cyannide on May 04, 2016; 7:07pm
URL: https://forum.jogamp.org/TextRegionUtil-region-cache-collisions-for-short-strings-tp4036685.html
I'm using com.jogamp.graph.curve.opengl.TextRegionUtil.java to render text and came across this for "OP" and "P1". Once "P1" becomes visible (and is rendered first) all instances of "OP" get rendered as "P1" because of a cache collision. I replaced the CharSequence.hashCode() with FNV1a hash since it performs well with short strings.
Should I submit a patch for it? Is there a preferred hash function that should be used instead of FNV?