Skip to content

Add Skeleton3D and AnimationTree benchmarks #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions benchmarks/animation/animated_models.gd
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func _init() -> void:
test_render_cpu = true
test_render_gpu = true


func benchmark_animation_state_machine_1000() -> TestScene:
return TestScene.new(1000, true).with_state_machine()

Expand Down
10 changes: 10 additions & 0 deletions benchmarks/animation/animation_tree.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extends Benchmark


func _init() -> void:
test_render_cpu = true
test_render_gpu = true


func benchmark_animation_tree_quads() -> Node:
return preload("res://supplemental/animation_tree.tscn").instantiate()
1 change: 1 addition & 0 deletions benchmarks/animation/animation_tree.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://danx1ul0cax6a
13 changes: 13 additions & 0 deletions benchmarks/animation/skeleton_3d.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
extends Benchmark


func _init() -> void:
test_render_cpu = true
test_render_gpu = true


func benchmark_skeleton_3d() -> Node:
return preload("res://supplemental/skeletal.tscn").instantiate()

func benchmark_skeleton_3d_no_skeleton() -> Node:
return preload("res://supplemental/non_skeletal.tscn").instantiate()
1 change: 1 addition & 0 deletions benchmarks/animation/skeleton_3d.gd.uid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uid://dlsbnrj4raylt
18 changes: 18 additions & 0 deletions default_env.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[gd_resource type="Environment" load_steps=3 format=3 uid="uid://du1js6r1lrlb7"]

[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_n4y2n"]
sky_top_color = Color(1, 1, 1, 1)
sky_horizon_color = Color(0.501961, 0.501961, 0.501961, 1)
sky_curve = 1.0
ground_bottom_color = Color(0, 0, 0, 1)
ground_horizon_color = Color(0.501961, 0.501961, 0.501961, 1)
ground_curve = 1.0
sun_angle_max = 0.0

[sub_resource type="Sky" id="Sky_ooua1"]
sky_material = SubResource("ProceduralSkyMaterial_n4y2n")

[resource]
background_mode = 1
sky = SubResource("Sky_ooua1")
ambient_light_source = 3
1 change: 1 addition & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ theme/default_theme_scale=1.5
[rendering]

occlusion_culling/use_occlusion_culling=true
environment/defaults/default_environment="uid://du1js6r1lrlb7"
Loading