diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -76,4 +76,30 @@ make run ROM_SRC=roms/audio.rom CONFIG="-DAUDIO_HIFI" | |||
76 | make run ROM_SRC=roms/audio.rom CONFIG="-DAUDIO_LOFI" | 76 | make run ROM_SRC=roms/audio.rom CONFIG="-DAUDIO_LOFI" |
77 | ``` | 77 | ``` |
78 | 78 | ||
79 | ### Text layer | ||
80 | |||
81 | When writing text to the screen (for example using the console device) the text | ||
82 | will be drawn by default on the foreground layer. This can be controlled by | ||
83 | setting the `TEXT_MODE` option to 0 for foreground mode or 1 for background | ||
84 | mode. | ||
85 | |||
86 | ``` | ||
87 | make run CONFIG="-DTEXT_MODE=1" | ||
88 | ``` | ||
89 | |||
90 | ### Performance metrics | ||
91 | |||
92 | To enable profiling, the `PROF_ENABLE` macro can be used. This will display the | ||
93 | cycle count for input handling (INPUT), loop uxn evaluation (EVAL), screen | ||
94 | buffer flip (FLIP) and audio mixing (MIX). If `PROF_ENABLE` is set to 0, the | ||
95 | current frame numbers will be displayed, if set to 1, the maximum cycle count | ||
96 | for each section will be used instead. Enabling profiling can have a small | ||
97 | performance impact, so these numbers may not be 100% accurate, but should give | ||
98 | a good indication. Using `PROF_SHOW_X` and `PROF_SHOW_Y` we can control at which | ||
99 | tile the cycle count text will be located. | ||
100 | |||
101 | ``` | ||
102 | make run CONFIG="-DPROF_ENABLE=0 -DPROF_SHOW_Y=8 -DPROF_SHOW_X=8" | ||
103 | ``` | ||
104 | |||
79 | [noodle]: https://wiki.xxiivv.com/site/noodle.html | 105 | [noodle]: https://wiki.xxiivv.com/site/noodle.html |