godot-xterm/benchmark/benchmark.tscn
Leroy Hopson 9569c9e489 perf(term): add benchmarks
Adds benchmarks by running [alacritty/vtebench](https://github.com/alacritty/vtebench)
benchmarks in the terminal.
Uses code based on [godotengine/godot-benchmarks](https://github.com/godotengine/godot-benchmarks)
to measure average GPU and CPU time spent per frame.
Uses [github-action-benchmark](https://github.com/benchmark-action/github-action-benchmark)
for continuous integration, and publishes benchmark results to https://lihop.github.io/godot-xterm/dev/bench/.
2024-06-09 21:21:30 +12:00

26 lines
1 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://b2axn64mqnt8n"]
[ext_resource type="Script" path="res://benchmark/benchmark.gd" id="1_tmqb5"]
[ext_resource type="PackedScene" uid="uid://cysad55lwtnc6" path="res://examples/terminal/terminal.tscn" id="2_3raq0"]
[ext_resource type="Script" path="res://benchmark/terminal_benchmark.gd" id="3_8t8od"]
[ext_resource type="FontVariation" uid="uid://ckq73bs2fwsie" path="res://themes/fonts/regular.tres" id="3_hnrrm"]
[node name="Benchmark" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_tmqb5")
[node name="Terminal" parent="." instance=ExtResource("2_3raq0")]
layout_mode = 1
focus_mode = 0
theme_override_fonts/normal_font = ExtResource("3_hnrrm")
script = ExtResource("3_8t8od")
[connection signal="exited" from="Terminal" to="." method="_on_terminal_exited"]
[connection signal="data_received" from="Terminal/PTY" to="Terminal" method="_on_pty_data_received"]
[editable path="Terminal"]