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

Steam overlay is flickering #31

Open
SDesya74 opened this issue Feb 18, 2024 · 3 comments
Open

Steam overlay is flickering #31

SDesya74 opened this issue Feb 18, 2024 · 3 comments

Comments

@SDesya74
Copy link
Contributor

When I press shift tab to open the stim overlay, it opens but starts flickering very quickly.

Steps to reproduce:

use bevy::prelude::*;
use bevy_steamworks::SteamworksPlugin;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugins(SteamworksPlugin::new(480))
        .run();
}

This code works and does not cause the overlay to flicker on Bevy 0.11 (and thus bevy_steamworks 0.8).

@SDesya74
Copy link
Contributor Author

I've verified that if you only update bevy and don't change the internals of bevy_steamworks, the flickering persists. The problem is apparently not here, but I don't know how to find where bevy is broken

@SDesya74
Copy link
Contributor Author

I found out that if I call Client::init_app before adding DefaultPlugins, everything works.

To fix bevy_steamworks, we need to move Client::init_app to SteamworksPlugin::new, then it will be possible to initialize stim before RenderPlugin::build, which is the cause of the error. This solution works for me if I add SteamworksPlugin before or together with DefaultPlugins, adding it after does not fix the error.

Or we need to wait for a solution in Bevy, because earlier RenderPlugin::build called delayed initialization and initialization of the Stim client was guaranteed to be called before that.

@james7132
Copy link
Member

Going to leave this open until the ordering issue is resolved. See bevyengine/bevy#1255.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants