Disabled GC on pause cuz of lag. Fixed FlxCameras.defaultTarget warning
This commit is contained in:
parent
0e56a7336b
commit
cfd1099dbc
@ -60,9 +60,9 @@ class DiffOverview extends FlxSubState
|
|||||||
|
|
||||||
FlxG.cameras.add(camGame);
|
FlxG.cameras.add(camGame);
|
||||||
|
|
||||||
FlxG.cameras.add(camHUD);
|
FlxG.cameras.add(camHUD, false);
|
||||||
|
|
||||||
FlxCamera.defaultCameras = [camGame];
|
//FlxG.cameras.setDefaultDrawTarget(camGame,true);
|
||||||
|
|
||||||
playerStrums = new FlxTypedGroup<FlxSprite>();
|
playerStrums = new FlxTypedGroup<FlxSprite>();
|
||||||
|
|
||||||
|
@ -33,8 +33,6 @@ class PauseSubState extends MusicBeatSubstate
|
|||||||
public function new(x:Float, y:Float)
|
public function new(x:Float, y:Float)
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
cpp.vm.Gc.run(true);
|
|
||||||
trace("Game paused. We can run the garbage collector");
|
|
||||||
|
|
||||||
if (PlayState.instance.useVideo)
|
if (PlayState.instance.useVideo)
|
||||||
{
|
{
|
||||||
@ -83,7 +81,7 @@ class PauseSubState extends MusicBeatSubstate
|
|||||||
perSongOffset = new FlxText(5, FlxG.height - 18, 0, "Additive Offset (Left, Right): " + PlayState.songOffset + " - Description - " + 'Adds value to global offset, per song.', 12);
|
perSongOffset = new FlxText(5, FlxG.height - 18, 0, "Additive Offset (Left, Right): " + PlayState.songOffset + " - Description - " + 'Adds value to global offset, per song.', 12);
|
||||||
perSongOffset.scrollFactor.set();
|
perSongOffset.scrollFactor.set();
|
||||||
perSongOffset.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
|
perSongOffset.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
|
||||||
|
|
||||||
#if cpp
|
#if cpp
|
||||||
add(perSongOffset);
|
add(perSongOffset);
|
||||||
#end
|
#end
|
||||||
|
@ -401,13 +401,13 @@ class PlayState extends MusicBeatState
|
|||||||
camNotes.bgColor.alpha = 0;
|
camNotes.bgColor.alpha = 0;
|
||||||
|
|
||||||
FlxG.cameras.reset(camGame);
|
FlxG.cameras.reset(camGame);
|
||||||
FlxG.cameras.add(camHUD);
|
FlxG.cameras.add(camHUD, false);
|
||||||
FlxG.cameras.add(camSustains);
|
FlxG.cameras.add(camSustains, false);
|
||||||
FlxG.cameras.add(camNotes);
|
FlxG.cameras.add(camNotes, false);
|
||||||
|
|
||||||
camHUD.zoom = PlayStateChangeables.zoom;
|
camHUD.zoom = PlayStateChangeables.zoom;
|
||||||
|
|
||||||
FlxCamera.defaultCameras = [camGame];
|
//FlxG.cameras.setDefaultDrawTarget(camGame, true);
|
||||||
|
|
||||||
persistentUpdate = true;
|
persistentUpdate = true;
|
||||||
persistentDraw = true;
|
persistentDraw = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user