projectm
projectm copied to clipboard
[REQUEST] Suggestion to improve perf / HLSL
Please confirm the following points:
- [x] This question is NOT about the Android apps in the Play Store
- [x] I have searched the project page to check if the question was already asked elsewhere
Topic
General Request
Your Request
Hi,
I'm currently integrating ProjectM in an iOS app, Modizer. it's working quite well but I'm facing regular stuttering when switching preset. I went through #545 and did some profiling.
Issue seems to be the following call in HLSL which eats a lot of CPU in the preset loading process:
static inline double iss_strtod(const char * in, char ** end) (line 67 in hlslparser/src/Engine.cpp)
It seems the overhead is huge.
I tried to just call regular C strtod function instead and it seems to work fine so far, stuttering has gone. Not sure it is important to manage the C++ to C locale for that part.
Edit:spoke too soon, stuttering has reduced but not fully, will do more troubleshooting.