treat warnings as errors in samples
Merge pull request #9010 from ricardoquesada/treat_warnings_as_errors_in_samples

treat warnings as errors in samples
Performance improvements

`Director::getMatrix()` returns `const Mat4`
Merge pull request #9011 from ricardoquesada/perf_fixes

Performance improvements