Basalt2 update
- Finished themes - Added state plugins for persistance - Finished reactive plugin - Added debug plugin (80% finished) - Added benchmark plugin - Added Tree, Table, List, Dropdown and Menu Elements - Bugfixes
This commit is contained in:
19
examples/benchmarks.lua
Normal file
19
examples/benchmarks.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
local basalt = require("src")
|
||||
local main = basalt.getMainFrame()
|
||||
|
||||
local btn = main:addButton()
|
||||
:setText("Test")
|
||||
:setX(40)
|
||||
:setY(5)
|
||||
:onMouseClick(function()
|
||||
main:logContainerBenchmarks("render")
|
||||
--main:stopChildrenBenchmark("render")
|
||||
end)
|
||||
|
||||
local prog = main:addProgram()
|
||||
:execute("../rom/programs/shell.lua")
|
||||
|
||||
local frame main:addFrame():setX(30):addButton()
|
||||
|
||||
main:benchmarkContainer("render")
|
||||
basalt.run()
|
||||
Reference in New Issue
Block a user