Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blinking Agents #131

Open
Robadob opened this issue Dec 11, 2023 · 0 comments
Open

Blinking Agents #131

Robadob opened this issue Dec 11, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Robadob
Copy link
Member

Robadob commented Dec 11, 2023

In @mondus boids_trails branch (specifically commit 05e461e8f8) there are often frames where many agents simultaneously blink and appear in the wrong position (asthough their texture buffer information is uninitialised?). The trail agents are being born and dying regularly, but the population size remains static, possible there's an issue around this (related #126 ?).

I've tested the below and haven't found a clear cause:

  • Disabling vsync (seems to make it occur more frequently)
  • cudaDeviceSynchronize() before copying agent buffers to render buffers
  • holding the mapped device pointer for the lifetime of the render buffer

Likewise the mutex avoiding a render and buffer update race condition is working as intended.

This needs more investigation, but I'm currently out of ideas.

image

paul.mp4
@Robadob Robadob added bug Something isn't working help wanted Extra attention is needed labels Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant