projectM-visualizer / projectM-visualizer/projectm

[REQUEST] Suggestion to improve perf / HLSL

Open
#913 9 comments 0 reactions 1 assignee View on GitHub

@mbaetgen-wup is already working on this.

Since Oct 17, 2025.

more-details-needed question
Dominant language
C++
Stars
4.5k
Forks
485
Avg merge
3d 7h
Merged PRs (30d)
5

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.