@@ -22,6 +22,33 @@ Using GlassCode with blur effect set to high
22
22
3 . It is recommended to use the high contrast theme for the best result or at lest any dark theme.
23
23
My suggestion is to enable the high contrast theme
24
24
25
+
26
+
27
+ ## Super important!
28
+ To get high performance, go to: File->Settings
29
+ And make sure you enabled "Enable GPU Acceleration (For NVIDIA CUDA Enabled GPUs only)"
30
+ ![ image] ( https://user-images.githubusercontent.com/17680514/116011605-a1e86300-a62e-11eb-9e01-fef23b162160.png )
31
+ This option will work only for NVIDIA GPUs
32
+
33
+ Otherwise, you may have to reduce the screen resolution to maximum 1920x1080 because the effect may not work fast enough without GPU Acceleration.
34
+
35
+ If you think that you can optimize the performance for CPU (without GPU Acceleration), feel free to design a better algorithm here:
36
+ https://github.com/gileli121/GlassCode/blob/80150bd18be2118cfde4b3943950ba65d8746dc8/CPP/process_layer_cpu.cpp#L690
37
+ Replace this function with your faster algorithm and submit PR.
38
+ The function is responsible for detecting the texts(or any shapes...) so that when the opacity applied, the opacity will not include the texts.
39
+
40
+ The result will look like this
41
+ ![ image] ( https://user-images.githubusercontent.com/17680514/116011894-f9d39980-a62f-11eb-931d-489effaf5f4a.png )
42
+ That the texts/shapes have no opacity at all but everything around it have opacity.
43
+
44
+ The magic was done here:
45
+
46
+ CPU algorithm: https://github.com/gileli121/GlassCode/blob/80150bd18be2118cfde4b3943950ba65d8746dc8/CPP/process_layer_cpu.cpp#L690
47
+
48
+ NVIDIA GPU algorithm (works much faster!): https://github.com/gileli121/GlassCode/blob/1c89a644bae2b2c51f274b3ad1aee07fb0d36ae8/CPP/process_layer_gpu.cu#L433
49
+
50
+
51
+
25
52
## How to use
26
53
Currently, the only way to use this plugin is to click on the GlassCode tab here:
27
54
0 commit comments