Skip to content

[REQUEST] Suggestion to improve perf / HLSL #913

@yoyofr

Description

@yoyofr

Please confirm the following points:

  • This question is NOT about the Android apps in the Play Store
  • 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.

Metadata

Metadata

Assignees

Labels

more-details-neededThe 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions