google / google/toucan

Looping on a non-drawn swapChain.Present() will eventually cause a crash

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
69
Forks
3
PR merge metrics
No merged PRs in 30d

Description

```
var device = new Device();
var window = new Window({0, 0}, System.GetScreenSize());

var swapChain = new SwapChain(device, window);
while (System.IsRunning()) {
swapChain.GetCurrentTexture();
swapChain.Present();
while (System.HasPendingEvents()) {
System.GetNextEvent();
}
}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.