public class PDebug extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
debugBounds
Displays bounding boxes around nodes.
|
static boolean |
debugFullBounds
Displays a tint to all shapes within a bounding box.
|
static boolean |
debugPaintCalls
Set to true if you want to display common errors with painting and
threading.
|
static boolean |
debugPrintFrameRate
Set to true to display frame rate in the console.
|
static boolean |
debugPrintUsedMemory
Set to true to display used memory in console.
|
static boolean |
debugRegionManagement
Set to true to display clip bounds boxes.
|
static boolean |
debugThreads
Whether to complain whenever common threading issues occur.
|
static int |
printResultsFrameRate
How often in frames result info should be printed to the console.
|
Modifier and Type | Method and Description |
---|---|
static void |
endProcessingInput()
Records that processing of input has finished.
|
static void |
endProcessingOutput(Graphics g)
Flags processing of output as finished.
|
static long |
getApproximateUsedMemory()
Returns an approximation of the amount of memory that is being used.
|
static Color |
getDebugPaintColor()
Generates a color for use while debugging.
|
long |
getFramesProcessed()
Return the number of frames that have been processed since the last time
resetFPSTiming was called.
|
static double |
getInputFPS()
Return the frames per second used to process input events and activities.
|
static double |
getOutputFPS()
Return the frames per seconds used to paint graphics to the screen.
|
static boolean |
getProcessingOutput()
Returns whether output is being processed.
|
static double |
getTotalFPS()
Return how many frames are processed and painted per second.
|
static void |
processRepaint()
Ensures that painting is not invalidating paint regions and that it's
being called from the dispatch thread.
|
static void |
resetFPSTiming()
Reset the variables used to track FPS.
|
static void |
scheduleProcessInputs()
Checks that process inputs is being doing from the Swing Dispatch Thread.
|
static void |
startProcessingInput()
Records that processing of input has started.
|
static void |
startProcessingOutput()
Records that processing of ouptut has begun.
|
public static boolean debugRegionManagement
public static boolean debugPaintCalls
public static boolean debugPrintFrameRate
public static boolean debugPrintUsedMemory
public static boolean debugBounds
public static boolean debugFullBounds
public static boolean debugThreads
public static int printResultsFrameRate
public static Color getDebugPaintColor()
public static void scheduleProcessInputs()
public static void processRepaint()
public static boolean getProcessingOutput()
public static void startProcessingOutput()
public static void endProcessingOutput(Graphics g)
g
- graphics context in which processing has finishedpublic static void startProcessingInput()
public static void endProcessingInput()
public static double getTotalFPS()
public static double getInputFPS()
public static double getOutputFPS()
public long getFramesProcessed()
public static void resetFPSTiming()
public static long getApproximateUsedMemory()
Copyright © 1995-2013 Piccolo2D. All Rights Reserved.