examples: fix sokol/particles to start up faster (#6610)

pull/6613/head
Larpon 2020-10-13 12:16:51 +02:00 committed by GitHub
parent 28dea17065
commit 05ec32c331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ mut:
pub fn (mut s System) init(sc SystemConfig) { pub fn (mut s System) init(sc SystemConfig) {
for i := 0; i < sc.pool; i++ { for i := 0; i < sc.pool; i++ {
p := new(vec2.Vec2{f32(s.width) * 0.5, f32(s.height) * 0.5}) p := new(vec2.Vec2{f32(s.width) * 0.5, f32(s.height) * 0.5})
s.pool << p s.bin << p
} }
} }