jonkogan / nullpomino

Automatically exported from code.google.com/p/nullpomino
0 stars 0 forks source link

FPS spikes cause jumpy controls (unable to play) #61

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Current 7.5 release, only tested in Slick and netplay so far.

The general problem:
Especially at the start of a game (but has also been observed during the game 
from time to time), the renderer renders way too many frames (normally 100+ 
fps, up to 300-400), which causes instant das to wall with every key press, 
basically making you unable to play. This normally lasts for 1-3 seconds, but 
can also be very brief just for about half a second (espc. during the game).

At the moment the problem is hard to reproduce, but it does happen pretty 
often, about every second game, sometimes especially at the start of every game.

The criteria when this occurs (render settings) are not clear, yet. Please test 
this as much as possible, that we can try to narrow down the setting 
configuration, which can cause this. From what I have seen so far this bug does 
never occur, when having vsync enabled (which I normally have).

VSync in nullpo in combination with the ustream screen grabber (3D Mode 
enabled) does not work tho, since it halfs the frames to about 30 fps (not 
playable). Without vsync (and various adjustments to perfect mode, sleep 
timing, dynamic adjust, etc.), the problem seems to occur every time now.

This was first reported by a user (normal play, no screen grabber), and then 
also expirienced by myself, while streaming the game window.

Original issue reported on code.google.com by bob.ins...@gmail.com on 22 Jan 2011 at 7:23

GoogleCodeExporter commented 8 years ago

Original comment by bob.ins...@gmail.com on 22 Jan 2011 at 7:23

GoogleCodeExporter commented 8 years ago
I might have encountered a similar issue . When softdroping a piece, the piece 
got stuck and wouldn't lock or do anything.  I was still able to chat on the 
nullpo server.
After the game it said i dropped 6000 pieces at 10pps in the stats window.  FPS 
spiked around 200-300 at the time.  

Original comment by junwong...@gmail.com on 26 Jan 2011 at 12:13

GoogleCodeExporter commented 8 years ago
I've never had this happen, although I have heard about things like it 
happening... I wouldn't be surprised if the soft drop issue was related, 
though, even though it seems to only be going fast-forward behind the renderer 
or something if the piece on the screen froze.

This is really strange.

Original comment by Zirc...@gmail.com on 27 Jan 2011 at 6:54

GoogleCodeExporter commented 8 years ago
Added a fix of this problem in r724. Hope it work well.

Original comment by pbomqlu910963@gmail.com on 30 Jan 2011 at 12:48

GoogleCodeExporter commented 8 years ago
repetition314 is another player with this problem, do you know what settings 
should be used to avoid it?

Original comment by w.kowa...@gmail.com on 4 Feb 2011 at 11:51

GoogleCodeExporter commented 8 years ago
As I wrote before, enabling vsync should fix this in general. I never 
encountered any of these fps spikes with it on.

Original comment by bob.ins...@gmail.com on 5 Feb 2011 at 9:51

GoogleCodeExporter commented 8 years ago
im pretty sure this happens in 4-6p rooms when you alt tab out of nullpomino 
(i.e. minimize the window) and then alt tab back in to it.

Original comment by cuong.duong242@gmail.com on 10 Feb 2011 at 10:20

GoogleCodeExporter commented 8 years ago
you think that issue where game for some people start faster than for others is 
connected to this issue? or we should start new issue?

Original comment by w.kowa...@gmail.com on 13 Feb 2011 at 3:58

GoogleCodeExporter commented 8 years ago
A user (Ukrainian4Life) found a settings combindation that seems to reduce this 
issue.
See here: 
http://harddrop.com/forums/index.php?s=&showtopic=2317&view=findpost&p=40964

*quote*

Ok, so I know some people who play Nullpomino have the same issues that I have 
been having, such as: FPS over 200 at the beginning, and then FPS dropping down 
to below 30 (although this may happen in 6p games). I tinkered around with the 
settings that people have said to be "ideal", but the game would still not give 
me my 60FPS! Ambivalent.png So I then went to my settings and changed a few 
things and I have no been having no issues during the start of the games and my 
FPS doesn't drop down to an absurdly low FPS count.

The way my settings currently look is (going in reverse order, starting from 
the bottom of the 3rd page of the General Options):
FPS Dynamic Adjust: on
FPS Sleep Timing: render
Vsync: on
BGM Streaming: on
FPS Perfect Yield: off
FPS Perfect Mode: off
Frame Step: off
Max FPS: 60

By switching to these settings, I have been having less issues with Nullpomino. 
Let me know if this works for you!

Original comment by bob.ins...@gmail.com on 19 Feb 2011 at 4:06

GoogleCodeExporter commented 8 years ago
This still happens sometimes for me even with these settings on - I am not sure 
what the criteria are for it happening, though it seems to have lessened in 
severity recently

Original comment by pje...@gmail.com on 5 Jul 2011 at 4:22