This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Changes made: | |
* Using chunkXCounter and chunkZCounter to check when we have moved into a new chunk, | |
* rather than (x % Constants.ChunkSize) * Constants.ChunkSize each loop. This removes all %, / and * operators | |
* Comparisons against 0 in loops where possible | |
* Using .Reset() on the block, rather than getting a reference and modifying index and health on two different lines | |
* Previous benchmark: 100 runs in 5315ms. | |
* New benchmark: 100 runs in 4755ms | |
* */ | |
byte[] fileData = r.ReadBytes(bytesRemaining); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ModelHelper.InitialiseTrigonometry(); | |
Random rand = new Random(); | |
int count = 524288; | |
float[] randoms = new float[count]; | |
float[] result = new float[count]; | |
int[] mathTimes = new int[100]; | |
int[] arrayTimes = new int[100]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Microsoft (R) Windows Debugger Version 10.0.22473.1005 AMD64 | |
Copyright (c) Microsoft Corporation. All rights reserved. | |
Loading Dump File [C:\Users\verc\Downloads\sectorsedge.exe.13044.dmp] | |
User Mini Dump File: Only registers, stack and portions of memory are available | |
************* Path validation summary ************** |
OlderNewer