-
Notifications
You must be signed in to change notification settings - Fork 15
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
fps changes from 50 to 6 in unknown reason #48
Comments
@bojidar-bg maybe is something about that every bullet has a fixed process running at the time? @zhagsenkk what are your hardware specs? |
@erik90mx it's the bullet lights! (Will open an issue about it in a sec :) ) |
@bojidar-bg okidoki, well I'm working with the bullet and gun xml and scripts for the casings, I make some minor changes to them, I will try to commit them today if is possible, in order to fix this after. |
@zhagsenkk BTW, what happens when you have like 100 spiders (kamikadze or not) on the screen at once? |
@bojidar-bg yep good point, they have lights attached too :) |
@erik90mx GT-630m/win8.1/i5-3210m |
software named "Fraps" to show fps. |
First to all @zhagsenkk thanks for take the time to make that tests 👍 we really appreciate that, I understand better the scenario, I will try to reproduce it now. @bojidar-bg: I'm thinking that maybe has something to do with the colliders. |
@erik90mx Best wishes to you! |
@erik90mx I think that physics and collisions will have negligible impact on the FPS. Low FPS comes from the lights, I think. 😃 |
@zhagsenkk just a quick thing that will be helpful to make more test (show actual FPS in the console) I will try to know how to integrate the FPS number natively in the screen. @bojidar-bg l will try to make the same tests than in the screenshots to know exactly what and why >:) |
|
@zhagsenkk You made this screen by disabling/removing the lights from the bullet and spider scenes, right? |
@erik90mx It's not hard to do it, just make an FPSLabel.gd that extends Label 😄 |
@bojidar-bg just set the light disabled.Nothing is removed. |
@zhagsenkk I was asking just to make sure no black magic is involved 😉 |
@bojidar-bg and @zhagsenkk well now FPS is in a label (for now always activated, it will be important in this debug stage): 2ec9253 |
@zhagsenkk HoooHoohoo.... KOBUGE never dies 😈 We are just sometimes somewhat busy... somehow 😃 |
@zhagsenkk well we were in this issues: #19 and |
@zhagsenkk well after a little time, I got the cage http://prntscr.com/7yf1hc , now I will try yo make some tests. |
@zhagsenkk North/South America 😄 |
@zhagsenkk probably in an Asian country :) |
@zhagsenkk probably on Earth. But I can mistake :) |
@bojidar-bg and @zhagsenkk in this commit I added a second label, this one will count every enemy that is in the scene, and submit the test map (edited the forest), right now when there are 200 kamikazes the FPS is in 5... so maybe there is other issue more than the lights. @bojidar-bg maybe we need to refactor the enemy classes? |
@erik90mx maybe you can disable the fixed_process ? |
@bojidar-bg where do you mean? and what will be the consecuences? |
@erik90mx I was thinking to remove the logic in the spider script, so we can check if it is dropping the framerate. |
Maybe there would not exist so much kamikazes when you play.You can limit the number of enemy on screen at one time. |
@zhagsenkk ~ Well, yeah, it is quite strange(and unfortunate) if they get to 200 enemies on-screen. @erik90mx Quick question. does your FPS go up when you go away from the spiders? E.g. when you have 200 spiders, but they are off-screen? |
@bojidar-bg I try that, but is the same, even when I disable the sprite (so its a process problem) |
@erik90mx (an image is worth a thousand words...) This is with visibilityEnabler, so the spiders aren't fixed_processed while out-of-screen. Only when I go near them my FPS goes down to 5, but that's another story 😄. I'll commit it soon. |
@bojidar-bg this way the enemy will not move until we reach them?, do you think it will affect the gameplay some how? I will read the commit for sure :) it is interesting the use of it. |
@erik90mx No, I don't think this will be a problem, because it will be unrealistic for the spider to see the player when the player can't see it (unfair advantage). Also, we thought to make spiders target only players in some distance, not all players. 😃 BTW, for the record, the commit this was added is 41e1498 |
@bojidar-bg so it was a Godot UI option? :) |
@bojidar-bg I I refer to that, because just saw .xml files in that commit :) http://s23.postimg.org/ow5v6dpcr/screenshot_337.png |
@erik90mx No, there is just some build-in node called VisibilityEnabler2D. 😸 |
@bojidar-bg got it, I need to test it in my computer :) |
@bojidar-bg well the problem is solved when the player is not seeing the enemies, do you think it will be necessary to lock the enemy quantity? |
I use the stone make a sqare to surround the enemy,and there are more than forty "enemy_kamikaze".I shoot randomly,and during a period of time,fps comes down to 7 or 6.
The text was updated successfully, but these errors were encountered: