Skip to content

Commit 18ef51b

Browse files
committed
fix status output; update changelog
1 parent b436cc5 commit 18ef51b

2 files changed

Lines changed: 3 additions & 28 deletions

File tree

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Template for new versions:
6767
- Quickfort blueprint library: ``aquifer_tap`` blueprint now designated at priority 3 and marks the stairway tile below the tap in "blueprint" mode to prevent drips while the drainage pipe is being prepared
6868
- `preserve-rooms`: automatically release room reservations for captured squad members. we were kidding ourselves with our optimistic kept reservations. they're unlikely to come back : ((
6969
- `buildingplan`: add value info to item selection dialog (effectively ungrouping items with different values) and add sorting by value
70+
- `timestream`: reduce CPU utilization
7071

7172
## Documentation
7273
- Dreamfort: add link to Dreamfort tutorial youtube series: https://www.youtube.com/playlist?list=PLzXx9JcB9oXxmrtkO1y8ZXzBCFEZrKxve

plugins/lua/timestream.lua

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,9 @@ local function do_reset()
2424
end
2525

2626
local function print_status()
27-
print(GLOBAL_KEY .. ' is ' .. (state.enabled and 'enabled' or 'not enabled'))
27+
print('timestream is ' .. (isEnabled() and 'enabled' or 'not enabled'))
2828
print()
29-
print('settings:')
30-
for _,v in ipairs(SETTINGS) do
31-
print((' %15s: %s'):format(v.name, state.settings[v.internal_name or v.name]))
32-
end
33-
if DEBUG < 2 then return end
34-
print()
35-
print(('cur_year_tick: %d'):format(df.global.cur_year_tick))
36-
print(('timeskip_deficit: %.2f'):format(timeskip_deficit))
37-
if DEBUG < 3 then return end
38-
print()
39-
print('tick coverage:')
40-
for coverage_slot=0,49 do
41-
print((' slot %2d: %scovered'):format(coverage_slot, tick_coverage[coverage_slot] and '' or 'NOT '))
42-
end
43-
print()
44-
local bdays, bdays_list = {}, {}
45-
for _, next_bday in pairs(birthday_triggers) do
46-
if not bdays[next_bday] then
47-
bdays[next_bday] = true
48-
table.insert(bdays_list, next_bday)
49-
end
50-
end
51-
print(('%d birthdays:'):format(#bdays_list))
52-
table.sort(bdays_list)
53-
for _,bday in ipairs(bdays_list) do
54-
print((' year tick: %d'):format(bday))
55-
end
29+
print('target FPS is set to: ' .. tostring(timestream_getFps()))
5630
end
5731

5832
function parse_commandline(args)

0 commit comments

Comments
 (0)