OpenGL Debugging

Posted: October 30, 2009 in Android, Java, Mobile
Tags: ,

Often you have to trun off Log.* statements, Debug.* statements, etc so I sue a simple System.out.print set-up:

public class SystemOutPrint {

	/**
	 *
	 * @param str
	 */
	public SystemOutPrint(String str){
		System.out.print(str);

	}

	/**
	 *
	 * @param obj
	 */
	public SystemOutPrint(Object obj) {
		System.out.print(obj);
	}

	/**
	 *
	 * @param obj
	 * @param str
	 */
	public SystemOutPrint(Object obj, String str) {
		System.out.print(obj);
		System.out.print(str);
	}
Advertisements
Comments
  1. Lekky says:

    You should never use sys out in replace of log…

  2. Paul Teale says:

    Google actually recommend you use Log rather than System.out because it doesn’t impact frame rate performance like System.out does.

    • sharemefg says:

      yes but under OPenGL there are certain calls that yo cannot see by using either log or the GLWrapper hence the need for another solution.
      Once opengl is fixed that wil no longer be the case.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s