Skip to content

Commit

Permalink
Fixed some performance issues :)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealVira committed Apr 14, 2017
1 parent 6588022 commit c7dc674
Show file tree
Hide file tree
Showing 71 changed files with 74 additions and 77 deletions.
2 changes: 1 addition & 1 deletion 3DMusicVis/3DHelper/Grid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: Grid.cs
// Date - created:2016.12.10 - 09:37
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/3DHelper/VertexPositionColorNormal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: VertexPositionColorNormal.cs
// Date - created:2016.12.10 - 09:37
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Camera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: Camera.cs
// Date - created:2016.12.10 - 09:37
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/ColorMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: ColorMode.cs
// Date - created:2016.12.10 - 09:37
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/EnumExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: EnumExtensions.cs
// Date - created:2016.12.10 - 09:37
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: Extensions.cs
// Date - created:2016.12.10 - 09:37
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Game1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: Game1.cs
// Date - created:2016.12.10 - 09:36
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Manager/ImageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: ImageManager.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Manager/InputManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: InputManager.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Manager/ResolutionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: ResolutionManager.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Manager/ScreenManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: ScreenManager.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
4 changes: 2 additions & 2 deletions 3DMusicVis/Manager/TemplateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: TemplateManager.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 11:59
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down Expand Up @@ -236,7 +236,7 @@ public static Setting.Visualizer.Setting GetStriker()
},
new SettingsBundle
{
HowIDraw = DrawMode.Connected,
HowIDraw = DrawMode.Blocked,
IsFrequency = false,
Trans = new Transformation {Position = new Vector2(0, 0f), Scale = new Vector2(1, 1)},
Color = new ColorSetting {Color = Color.Red}
Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/MyMath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: MyMath.cs
// Date - created:2016.12.10 - 09:37
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/OutPutConsole/OutputManagerEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: OutputManagerEventArgs.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/OutPutConsole/OutputManagerEventHandeling.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: OutputManagerEventHandeling.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: Program.cs
// Date - created:2016.12.10 - 09:36
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: AssemblyInfo.cs
// Date - created:2016.12.10 - 10:13
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
4 changes: 2 additions & 2 deletions 3DMusicVis/RecordingType/RealTimeRecording.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: RealTimeRecording.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down Expand Up @@ -163,7 +163,7 @@ private static void waveSource_DataAvailable(object sender, WaveInEventArgs wave
//}

// Saving data into a static field
CurrentSamples = frames;
CurrentSamples = frames.Where((x, i) => i % samples.WaveFormat.Channels == 0).ToArray();

// Get parameters
var buffer = waveInEventArgs.Buffer;
Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/RenderFrame/2D/2DFrequencyRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: 2DFrequencyRenderer.cs
// Date - created:2017.04.14 - 09:21
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/RenderFrame/2D/2DMusicVisRenderFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: 2DMusicVisRenderFrame.cs
// Date - created:2017.04.14 - 09:21
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
7 changes: 2 additions & 5 deletions 3DMusicVis/RenderFrame/2D/2DSampleRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: 2DSampleRenderer.cs
// Date - created:2017.04.14 - 09:21
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down Expand Up @@ -53,10 +53,7 @@ public static void Initialise(GraphicsDevice device)

public static void UpdateRenderer(ReadOnlyCollection<float> samples)
{
lock (_samples)
{
_samples = samples;
}
_samples = samples;
}

private static void Draw(GraphicsDevice device, GameTime gameTime, Camera cam, DrawMode settings,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: 3DCirclularWaveRenderer.cs
// Date - created:2017.04.14 - 09:23
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: 3DLinearFrequencyRenderer.cs
// Date - created:2017.04.14 - 09:23
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/RenderFrame/3D/Unused/3DLinearWaveRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: 3DLinearWaveRenderer.cs
// Date - created:2017.04.14 - 09:23
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/RenderFrame/3D/Unused/3DMusicVisRenderFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: 3DMusicVisRenderFrame.cs
// Date - created:2017.04.14 - 09:23
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/RenderFrame/3D/Used/3DFrequencyRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: 3DFrequencyRenderer.cs
// Date - created:2017.04.14 - 09:23
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/RenderFrame/3D/Used/3DSampleRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: 3DSampleRenderer.cs
// Date - created:2017.04.14 - 09:23
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/RenderFrame/RendererDefaults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: RendererDefaults.cs
// Date - created:2017.04.13 - 12:55
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/SampleAggregator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: SampleAggregator.cs
// Date - created:2016.12.10 - 09:37
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Screen/Credits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: Credits.cs
// Date - created:2016.12.10 - 09:43
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Screen/EditForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: EditForm.cs
// Date - created:2016.12.10 - 09:43
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: KindOfLoadingSettingScreen.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Screen/LoadSetting/LoadFromSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: LoadFromSetting.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Screen/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: MainMenu.cs
// Date - created:2016.12.10 - 09:43
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Screen/PauseMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: PauseMenu.cs
// Date - created:2016.12.10 - 09:43
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Screen/Prompt/IPrompt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: IPrompt.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Screen/Prompt/OkPrompt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: OkPrompt.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Screen/Prompt/YesNoPrompt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: YesNoPrompt.cs
// Date - created:2016.12.10 - 09:45
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Screen/RenderForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: RenderForm.cs
// Date - created:2016.12.10 - 09:43
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Screen/Screen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: Screen.cs
// Date - created:2016.12.10 - 09:43
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
2 changes: 1 addition & 1 deletion 3DMusicVis/Screen/SplashScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Project: 3DMusicVis
// Filename: SplashScreen.cs
// Date - created:2016.12.10 - 09:43
// Date - current: 2017.04.14 - 12:00
// Date - current: 2017.04.14 - 20:16

#endregion

Expand Down
Loading

0 comments on commit c7dc674

Please sign in to comment.