public void WriteFile() { // StreamWriter writer = new StreamWriter(PFileStream); string line = Time.time.ToString() + ","; string fps = (m_frameCounter / m_timer).ToString(); line = line + "," + fps + "," + GameObjectCount.ToString() + "," + DrawcallCount.ToString() + "," + TriangleCount.ToString() + "," + VertexCount.ToString(); Writer.WriteLine(line); Writer.Flush(); }
public ActionResult CountTriangles(DesignDocument doc) { TriangleCount count = new TriangleCount(); if (doc.Part1 == true) { count.TotalValidTriangles = FindPart1Solution(doc); } else { count.TotalValidTriangles = FindPart2Solution(doc); } return(PartialView("TriangleCount", count)); }
protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("Cell", true, out subEle); Cell.WriteXML(subEle, master); ele.TryPathTo("VertexCount", true, out subEle); subEle.Value = VertexCount.ToString(); ele.TryPathTo("TriangleCount", true, out subEle); subEle.Value = TriangleCount.ToString(); ele.TryPathTo("ExternalConnectionsCount", true, out subEle); subEle.Value = ExternalConnectionsCount.ToString(); ele.TryPathTo("NVCACount", true, out subEle); subEle.Value = NVCACount.ToString(); ele.TryPathTo("DoorsCount", true, out subEle); subEle.Value = DoorsCount.ToString(); }