Code Monkey home page Code Monkey logo

Comments (7)

SardineFish avatar SardineFish commented on August 28, 2024

Have you tried to set mist: false in RenderingOptions? Turnning this off should completely disable bluring.

from raindrop-fx.

SardineFish avatar SardineFish commented on August 28, 2024

What GPU are you using? On my GTX 1050Ti with 1080x1920 screen on Chrome. The frame cost is lower than 6ms with both CPU + GPU.

from raindrop-fx.

cardinalpepe avatar cardinalpepe commented on August 28, 2024

Have you tried to set mist: false in RenderingOptions? Turnning this off should completely disable bluring.

Disabling mist entirely does reduce the GPU usage slightly, but it doesn't disable the blur effect being applied to the background image, (as I said before I think that disabling the blur effect in the background will reduce GPU usage, but I'm not sure if it will, what do you think?)

What GPU are you using? On my GTX 1050Ti with 1080x1920 screen on Chrome. The frame cost is lower than 6ms with both CPU + GPU.

I use a 1660Ti, 3840x1080, having it run with mist on uses 43% of my gpu and having mist off uses 37% of my gpu.

from raindrop-fx.

SardineFish avatar SardineFish commented on August 28, 2024

I reviewed my old code, rendering the blury mist actually cost only one drawcall. The blur pass is only done once when background image or size is changed.
I profiled on my workstation with RTX 3080Ti, it cost only 0.3~0.4 ms during every update. Which should be a very low cost compare to a common video game. While the windows task manager reports at 35% GPU usage.
I think the GPU usage reported by task manager is not reliable.

image

from raindrop-fx.

SardineFish avatar SardineFish commented on August 28, 2024

Do you suffered any system latency or frame drop while running this raindrop page together with a video game?
The most heavy works in this raindrop effect is actually on CPU side, which have to simulate thousands of sliding droplets.

from raindrop-fx.

cardinalpepe avatar cardinalpepe commented on August 28, 2024

Thank you SardineFish for your response, the only reason I was worrying about the GPU usage is because I view my desktop alot,
the constant use of gpu, and repeatedly cooling down and heating up when I'm not viewing the desktop might be harmful for my GPU, as the wallpaper pauses once a window is maximized (not viewing the desktop).

I have not attempted to play a game while having the wallpaper running, and I think you might be right with taskmanager not being accurate with gpu usage, thank you for helping and responding.

from raindrop-fx.

SardineFish avatar SardineFish commented on August 28, 2024

I think you don't have to wory about using GPU repeatedly cooling down and heating up. Actually the system always use your GPU to do a lot rendering works while you may not notice it.
For example, when I minimize my chome window, the GPU usage immediately gose to 40% and quickly drop to 10%.
PC hardware is much more durable than you thought.

from raindrop-fx.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.