Packets only occur in 10 spots per network wire. If multiple packets are being drawn in one location, only draw them once. Speeds things up considerably
This commit is contained in:
parent
c6f9d1a0d9
commit
7f4108a164
@ -11,21 +11,23 @@
|
||||
<AssemblyName>EduNetworkBuilder</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<IsWebBootstrapper>true</IsWebBootstrapper>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Web</InstallFrom>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>true</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateMode>Background</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdatePeriodically>true</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<InstallUrl>http://tyounglightsys.ddns.info/EduNetworkBuilder/v1/</InstallUrl>
|
||||
<UpdateUrl>http://tyounglightsys.ddns.info/EduNetworkBuilder/v1/</UpdateUrl>
|
||||
<ProductName>EduNetworkBuilder</ProductName>
|
||||
<PublisherName>Tim Young</PublisherName>
|
||||
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
||||
<WebPage>publish.htm</WebPage>
|
||||
<ApplicationRevision>27</ApplicationRevision>
|
||||
<ApplicationRevision>28</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
|
@ -568,11 +568,15 @@ namespace EduNetworkBuilder
|
||||
public void DrawPackets()
|
||||
{
|
||||
foreach (Packet pkt in myPackets)
|
||||
{
|
||||
//If we do not already have something at the current rectangle, print it
|
||||
if (!PacketRectangles.Contains(pkt.PacketRectangle()))
|
||||
{
|
||||
pkt.Print(TheNetImageBackground); //Print all the packets over the network image
|
||||
Invalidate(pkt.PacketRectangle());
|
||||
PacketRectangles.Add(pkt.PacketRectangle());
|
||||
}
|
||||
}
|
||||
//myPBox.Refresh();
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033\deflangfe1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Calibri;}}
|
||||
{\*\generator Riched20 10.0.10586}{\*\mmathPr\mdispDef1\mwrapIndent1440 }\viewkind4\uc1
|
||||
\pard\nowidctlpar\sa200\sl276\slmult1\b\f0\fs22\lang9 Version 1.0.26\par
|
||||
\pard\nowidctlpar\sa200\sl276\slmult1\b\f0\fs22\lang9 Version 1.0.27\par
|
||||
\b0 * Made distribution easier by CD (does updates from web, but we also have a downloadable zip you can install from)\par
|
||||
\b Version 1.0.26\par
|
||||
\b0 * Major graphics overhaul\par
|
||||
- Packets move on timer\par
|
||||
- Graphics drawn "smarter"\par
|
||||
|
Loading…
Reference in New Issue
Block a user