Avoid creating a vertex buffer every frame
This commit is contained in:
parent
59d45a5440
commit
c58d94f3fd
5 changed files with 73 additions and 48 deletions
|
|
@ -86,8 +86,6 @@ impl Cache {
|
|||
let allocation =
|
||||
atlas.upload(width, height, &image, device, encoder)?;
|
||||
|
||||
dbg!("Uploaded");
|
||||
|
||||
*memory = Memory::Device(allocation);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue