-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Instancing sprite is glitchy #68529
Comments
Could you please provide an MRP? An MRP is a minimal reproduction project. Essentially it contains the fewest elements possible to reproduce the bug (more info here). While it may be helpful to have your entire game available, it is not fair to ask contributors to debug your entire game to figure out a) if this is a bug in your code or in Godot and b) where in Godot the bug exists (if one exists at all). To start, you can try to isolate elements of your game that you think are causing the problem. You mention that you are using threads, threads are a powerful tool but can be challenging to get right. When making an MRP, you should try to run your scene without threads and see if you can still reproduce the issue. |
My game isnt a full on game yet, all it is is basic movement and firing of missiles, nothing more. It should be pretty minial The reason I used threads was this issue happens without threads, so threads is eliminated as an reason I dont see anymore things that could be lowering the fps everytime a missile spawns. |
I found that after firing a missile, these errors are added to debug
|
Like in 3.x, you can show the material for a single frame when the project starts. This can be done behind a solid surface (if no occlusion culling is used), but it must be done in front of the camera so that the object isn't culled outside the view frustum. |
Can I leave it for the whole duration? because I might attach 1 missile under the belly of the airplane
so can I show for more than a frame? |
I tried placing a missile under jets belly, that causes TREMEDOUS lag |
oops, it was layer issue I see |
I found out why its glitchy because my missile is stuck in the plane and it lags trying to free itself |
Godot version
Godot 4 Beta 4
System information
Ubuntu 22.04 Running on Vulkan Mesa Intel® UHD Graphics 620 (WHL GT2)
Issue description
Instancing a sprite is pretty laggy, and if you look at timestamp 0:29, a random missile trail pops in and out of view (THERE IS NO MISSILE ATTACHED TO THE TRAIL)
I have shown in the video I have performance mode on.
If you look at my code, I am using threads as well (Scripts/GameScene/Player.cs line 25)
online-screen-recorder-2022-11-11--15-38-15.mp4
Steps to reproduce
https://github.com/Coder2195Text/fighter-jet-rampage
clone this
Minimal reproduction project
https://github.com/Coder2195Text/fighter-jet-rampage
The text was updated successfully, but these errors were encountered: