 
         super.init(coder: coder)
         self.wantsLayer = true
+        
+        viewBounds = self.bounds
     }
 
     override init(frame: NSRect) {

    }

    func render() {
        if (self.inLiveResize) {
            return
        }

        if (self.needsReset) {
            self.resetBuffers()

    var numCells:Int = 1024
    var cpuCellsBuffer: [UInt8] = []
    var needsReset: Bool = false
    
    let pixelSpacing: Float = (3.0 / 128.0)
    let gridSpacing: Float = (40.0 / 3.0)
    var viewBounds: NSRect!

    required init?(coder: NSCoder) {
        if let defaultDev = MTLCreateSystemDefaultDevice() {
