Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makeRasterImage() needed whether CPU or GPU rendering #956

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sstillwell
Copy link
Sponsor Contributor

There appears to be an especially-large performance hit on GPU if controls overlap on screen.

Here are some instructions for a good PR

  • create an issue first to outline the problem, to reference in this PR
    This PR fixes problem described in makeRasterImage() needed in GPU as well as CPU when drawing Bitmap #955
  • clearly describe the problem that the PR fixes
    Performance is impacted when drawing bitmaps, especially controls with bitmap stacks, and even more especially if controls overlap (with associated extra draws/redraws)
  • each PR should address one thing. It can include multiple commits, but you should try and tidy up work done into logical units if possible.
    This is the smallest possible PR to address this bug - we literally just stop conditionally rasterizing only for CPU rendering.
  • pay attention to iplug2 coding style
  • If it applies to an option e.g. IGRAPHICS_NANOVG or VST3 plug-ins, try to provide fixes for all options (e.g. all graphics backends or all plug-in formats)

If you follow these rules, it is more likely we will consider your PR, but please don't be upset if we decide we don't want to merge your work.

thanks, we like PRs!

oli & alex

There appears to be an especially-large performance hit on GPU if controls overlap on screen.
@sstillwell
Copy link
Sponsor Contributor Author

I'm not sure why all this would have failed...it looks like code download failed in a couple of places, so maybe build failed due to missing files? Certainly the change in the PR is trivial and is working successfully in my local GitLab repo.

@olilarkin
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@olilarkin
Copy link
Member

So the reason I haven't merged this yet is because I would have thought that keeping bitmaps on the GPU would be a performance win. Need to investigate more

@sstillwell
Copy link
Sponsor Contributor Author

Please do - the difference in performance is not small in our experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants