chore: split monolithic header to proper program files, add vec2 ruby class to proxy element position etc., other cleanup
This commit is contained in:
+4
-4
@@ -1,4 +1,4 @@
|
||||
App.run 720, 480, "Stress Test", fps: 120
|
||||
App.run 720, 480, "Stress Test", fps: 60
|
||||
|
||||
scene = Scene.new
|
||||
|
||||
@@ -30,7 +30,7 @@ App.localize(:en, :btn_text, "Stress Test %{count}")
|
||||
|
||||
App.localize(:en, :text, "Random Text")
|
||||
|
||||
1.times do |i|
|
||||
1000.times do |i|
|
||||
elements << ElementText.new(
|
||||
:text,
|
||||
font,
|
||||
@@ -43,7 +43,7 @@ App.localize(:en, :text, "Random Text")
|
||||
)
|
||||
end
|
||||
|
||||
500.times do |i|
|
||||
1000.times do |i|
|
||||
elements << ElementImage.new(
|
||||
animations.sample,
|
||||
position: { x: rand(0..700), y: rand(0..450) },
|
||||
@@ -54,7 +54,7 @@ end
|
||||
)
|
||||
end
|
||||
|
||||
500.times do |i|
|
||||
1000.times do |i|
|
||||
elements << ElementRect.new(
|
||||
20 + rand(100),
|
||||
20 + rand(100),
|
||||
|
||||
Reference in New Issue
Block a user