-
-
Notifications
You must be signed in to change notification settings - Fork 450
[REQUEST] Suggestion to improve perf / HLSL #913
Copy link
Copy link
Open
Labels
more-details-neededThe team needs more specific details on this issue to be able to work on it.The team needs more specific details on this issue to be able to work on it.questionThis issue is a general question about projectM and the surrounding ecosystem.This issue is a general question about projectM and the surrounding ecosystem.
Metadata
Metadata
Assignees
Labels
more-details-neededThe team needs more specific details on this issue to be able to work on it.The team needs more specific details on this issue to be able to work on it.questionThis issue is a general question about projectM and the surrounding ecosystem.This issue is a general question about projectM and the surrounding ecosystem.
Please confirm the following points:
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.