Added 120Fps Support

This commit is contained in:
2023-01-11 14:15:08 +01:00
parent a092c05866
commit 5becf33df0
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -52,6 +52,7 @@
// //
// pbxRayons // pbxRayons
// //
this.pbxRayons.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pbxRayons.Location = new System.Drawing.Point(12, 12); this.pbxRayons.Location = new System.Drawing.Point(12, 12);
this.pbxRayons.Name = "pbxRayons"; this.pbxRayons.Name = "pbxRayons";
this.pbxRayons.Size = new System.Drawing.Size(1044, 357); this.pbxRayons.Size = new System.Drawing.Size(1044, 357);
@@ -62,7 +63,7 @@
// //
this.pbxCaisses.Location = new System.Drawing.Point(12, 375); this.pbxCaisses.Location = new System.Drawing.Point(12, 375);
this.pbxCaisses.Name = "pbxCaisses"; this.pbxCaisses.Name = "pbxCaisses";
this.pbxCaisses.Size = new System.Drawing.Size(838, 387); this.pbxCaisses.Size = new System.Drawing.Size(838, 246);
this.pbxCaisses.TabIndex = 1; this.pbxCaisses.TabIndex = 1;
this.pbxCaisses.TabStop = false; this.pbxCaisses.TabStop = false;
// //
@@ -182,14 +183,14 @@
// //
// tmrDraw // tmrDraw
// //
this.tmrDraw.Interval = 17; this.tmrDraw.Interval = 8;
this.tmrDraw.Tick += new System.EventHandler(this.tmrDraw_Tick); this.tmrDraw.Tick += new System.EventHandler(this.tmrDraw_Tick);
// //
// Form1 // Form1
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1062, 768); this.ClientSize = new System.Drawing.Size(1062, 623);
this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox1);
this.Controls.Add(this.pbxCaisses); this.Controls.Add(this.pbxCaisses);
+2 -2
View File
@@ -9,8 +9,8 @@ namespace Caisses
{ {
public class GraphicalClient : Client public class GraphicalClient : Client
{ {
const int MAX_CLIENT_SPEED = 5; const float MAX_CLIENT_SPEED = 2.5f; //5 At 60FPS
const int MIN_CLIENT_SPEED = -5; const float MIN_CLIENT_SPEED = -2.5f; //-5 At 60FPS
private PointF _speed; private PointF _speed;
private PointF _position; private PointF _position;