CHAPTER 9

image

Debugging and Performance

In this chapter we will show how to troubleshoot errors and improve application performance. We will:

  • present helpful tools for debugging WebGL code and shaders
  • go over some common errors and their solutions
  • show ways to get more performance out of WebGL by optimizing our code to remove common bottlenecks
  • identify WebGL best practices

Debugging

When our program is producing erroneous results, as computer programmers we say that the program has bugs in it or is acting buggy. The process of identifying the source of the bug(s)/error(s) and fixing them is known as debugging.

Why should we aim to be proficient ...

Get Beginning WebGL for HTML5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.