Skip to content

Commit

Permalink
Remove Print
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakr233 committed Aug 17, 2024
1 parent e6c22db commit 8dbe5e3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions Sources/ColorfulX/AnimatedMulticolorGradientView+Update.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ extension AnimatedMulticolorGradientView {
}

func updateRenderParameters(deltaTime: Double) {
print("[*] render parameter update at \(obtainCurrentTimestamp())")

defer { renderInputWasModified = false }

let moveDelta = deltaTime * speed * 0.5 // just slow down
Expand Down
1 change: 0 additions & 1 deletion Sources/ColorfulX/AnimatedMulticolorGradientView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ open class AnimatedMulticolorGradientView: MulticolorGradientView {
}

override func render() {
print("[*] render at \(obtainCurrentTimestamp())")
super.render()
lastRenderExecution = obtainCurrentTimestamp()
}
Expand Down
7 changes: 1 addition & 6 deletions Sources/ColorfulX/MulticolorGradientView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ import MetalKit

open class MulticolorGradientView: MetalView {
public var parameters: Parameters = .init() {
didSet {
if oldValue != parameters {
print("parameters: \(parameters)")
needsRender = true
}
}
didSet { if oldValue != parameters { needsRender = true } }
}

private var needsRender: Bool = false
Expand Down

0 comments on commit 8dbe5e3

Please sign in to comment.