forked from soffes/hue
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.sh
executable file
·41 lines (33 loc) · 1.81 KB
/
config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
###############################################################################
# Performance Tuning
###############################################################################
# http://eng.rightscale.com/2015/09/16/how-to-debug-ruby-memory-issues.html?utm_source=rubyweekly&utm_medium=email
# How many heap slots to start with. This helps with (re)start time:
export RUBY_GC_HEAP_INIT_SLOTS=75000
#export RUBY_GC_HEAP_GROWTH_FACTOR=??
#export RUBY_GC_HEAP_GROWTH_MAX_SLOTS=??
###############################################################################
# Visual Effects
###############################################################################
# Whether to use background sweep thread for saw-tooth pattern on hue:
export USE_SWEEP=1
# Whether to actually run main lighting threads:
export USE_LIGHTS=1
# Whether or not to run the simulation graph:
export USE_GRAPH=1
###############################################################################
# Debugging
###############################################################################
# Forcibly disable Ruby GC:
export SKIP_GC=0
# Logging verbosity. Valid values: DEBUG, INFO, WARN, ERROR. Default is INFO.
export SPARKLEMOTION_LOGLEVEL=INFO
# Whether to run a profiler:
export PROFILE_RUN= # ruby-prof|memory_profiler
# If using ruby-prof, what mode to run it in:
export RUBY_PROF_MODE=allocations # ALLOCATIONS, CPU_TIME, GC_RUNS, GC_TIME, MEMORY, PROCESS_TIME, WALL_TIME
# Dump various PNGs showing the results of given nodes in the DAG over time.
# This is VERY VERY memory intensize! Don't try to use it for a long run!
# Current nodes: perlin, stretched, shifted_0, shifted_1, shifted_2, shifted_3, spotlit, output
# ... however you probably don't care about shifted_0..shifted_2.
export DEBUG_NODES= #spotlit,output #perlin,stretched,shifted_3,spotlit,output