Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Map Example Buffer Bug #2

Merged
merged 1 commit into from

2 participants

@toddtreece

hey ben,

i think this was the cause of the slowdown on the map example. let me know what you think.

@benlemasurier
@benlemasurier benlemasurier merged commit 7907b9d into benlemasurier:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 14, 2011
  1. @toddtreece

    Point buffer bug fix

    toddtreece authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 3 deletions.
  1. +4 −3 example/js/blode_map.js
View
7 example/js/blode_map.js
@@ -21,10 +21,10 @@ var BlodeMap = Class.create({
this._crosshair_color = "rgba(0, 0, 0, 0.5)";
this._point_buffer = {};
this._point_buffer_size = 1000;
- this._shipment_color = "rgba(0, 0, 255, 1)";
+ this._shipment_color = "rgba(0, 0, 255, 0.5)";
this._shipment_buffer = [];
this._shipment_buffer_size = 600;
- this._order_color = "rgba(0, 255, 0, 1)";
+ this._order_color = "rgba(0, 255, 0, 0.5)";
this._order_buffer = [];
this._order_buffer_size = 600;
@@ -297,7 +297,8 @@ var BlodeMap = Class.create({
this._point_buffer.data.unshift(point);
// remove the last item from the buffer
- this._point_buffer.data.data = this._point_buffer.data.slice(0, -1);
+ this._point_buffer.data = this._point_buffer.data.slice(0, -1);
+
}
this.render_foreground();
Something went wrong with that request. Please try again.