kde-shader-wallpaper icon indicating copy to clipboard operation
kde-shader-wallpaper copied to clipboard

FPS counter is inefficient

Open davidedmundson opened this issue 4 years ago • 6 comments

You don't need to rotate a hidden object, you can access some signals from the attached window object

import QtQuick.Window 2.12 Window.window.onFrameSwapped: fps++

davidedmundson avatar Sep 07 '20 06:09 davidedmundson

@davidedmundson thank you! I didn't know about this.

Can I use this as well to access the parented wallpaper shader from config.qml?

y4my4my4m avatar Sep 07 '20 06:09 y4my4my4m

Can I use this as well to access the parented wallpaper shader from config.qml?

I don't think I understand. Which object do you want to access from the config?

davidedmundson avatar Sep 07 '20 08:09 davidedmundson

@davidedmundson From config.qml I want to access the TShaderToy (id=toy) used by the Item (id=main) on main.qml

y4my4my4m avatar Sep 07 '20 21:09 y4my4my4m

Nevermind that, got it to work.

I'll improve the FPS counter now.

y4my4my4m avatar Sep 09 '20 00:09 y4my4my4m

@davidedmundson

Turns out, kde's wallpaper app doesn't seem to use Window so I cant reference it...any idea?

y4my4my4m avatar Sep 13 '20 00:09 y4my4my4m

Perhaps accessible using shader.parent.parent.parent

y4my4my4m avatar Jan 12 '21 09:01 y4my4my4m