mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: fix sokol/particles to start up faster (#6610)
This commit is contained in:
parent
28dea17065
commit
05ec32c331
@ -21,7 +21,7 @@ mut:
|
||||
pub fn (mut s System) init(sc SystemConfig) {
|
||||
for i := 0; i < sc.pool; i++ {
|
||||
p := new(vec2.Vec2{f32(s.width) * 0.5, f32(s.height) * 0.5})
|
||||
s.pool << p
|
||||
s.bin << p
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user