eruption-project / eruption

Realtime RGB LED Driver for Linux
https://eruption-project.org/
GNU General Public License v3.0
270 stars 33 forks source link

Graphics error on ROCCAT Vulcan 122 when config."Shockwave".shockwave_divisor == 2 #110

Open delauflahm opened 2 years ago

delauflahm commented 2 years ago

Introduction Hello, I've found a small bug, otherwise, eruption work's fine.

Bug description When I try to run the following script (the important part is shockwave.lua and the config."Shockwave"), there occurred a problem when the value of shockwave_divisor is 2. Otherwise, it work's fine, eg. 1,3,4,5, etc.

To Reproduce Just run the Profile which is noticed in Logs.

Expected behavior Take a look at the attached videos.

Logs

id = '6c3954fc-0bc3-4cfb-9d1f-d1fb6a047371'
name = '1. Gaming'
description = 'Shit by delauflahm'
active_scripts = [
    'solid.lua',
#   'linear-gradient.lua',
#   'afterglow.lua',
#   'gaming.lua',
#   'dim-zone.lua',
    'shockwave.lua',
]

[[config."Solid Color"]]
type = 'color'
name = 'color_background'
value = 0xff00ff6e
default = 0xff00ff6e

[[config."Gradient"]]
type = 'color'
name = 'color_start'
value = 0xff0099ff
default = 0xff0099ff

[[config."Gradient"]]
type = 'color'
name = 'color_end'
value = 0xff00ff6e
default = 0xff00ff6e

[[config."Gradient"]]
type = 'int'
name = 'color_divisor'
value = 5
default = 5

[[config."Gradient"]]
type = 'bool'
name = 'animate_gradient'
value = true
default = true

[[config."Afterglow"]]
type = 'color'
name = 'color_afterglow'
value = 0xffff0050
default = 0xffff0050

[[config."Gaming"]]
type = 'color'
name = 'color_highlight'
value = 0xffff0050
default = 0xffff0050

# dim a specific zone, e.g. if the mouse LEDs are too bright
[[config."Dim Zone"]]
type = 'int'
name = 'zone_start'
value = 144
default = 144

[[config."Dim Zone"]]
type = 'int'
name = 'zone_end'
value = 180
default = 180

[[config."Dim Zone"]]
type = 'float'
name = 'opacity'
value = 0.95
default = 0.95

[[config."Shockwave"]]
type = 'color'
name = 'color_shockwave'
value = 0xffff0050
default = 0xffff0050

[[config."Shockwave"]]
type = 'int'
name = 'shockwave_divisor'
value = 2
default = 5

Screenshots (Videos)

config."Shockwave" value = 2

https://user-images.githubusercontent.com/95418065/155297447-1e0961e0-24df-4951-902f-a496ef40bf32.mp4

config."Shockwave" value = 3

https://user-images.githubusercontent.com/95418065/155297481-7b5e0a05-bd29-4df6-8b5c-bba4c913f0b0.mp4

Please complete the following information:

Thanks, delauflahm