Quite a big performance improvement by not drawing things that aren't visible (alpha near zero).
Disabled some debugging.
Remove double quotes around 'pid' field.