Use a higher-res timer for GetMilliseconds(), and tweak some stuff.

[git-p4: depot-paths = "//depot/solvespace/": change = 1765]
solver
Jonathan Westhues 2008-06-01 01:46:02 -08:00
parent 857395966a
commit 57db9bea34
3 changed files with 9 additions and 3 deletions

View File

@ -540,7 +540,9 @@ void Group::MakePolygons(void) {
SMesh outm;
ZERO(&outm);
if(type == DRAWING_3D || type == DRAWING_WORKPLANE) {
if(type == DRAWING_3D || type == DRAWING_WORKPLANE ||
type == ROTATE || type == TRANSLATE)
{
int i;
for(i = 0; i < SS.entity.n; i++) {
Entity *e = &(SS.entity.elem[i]);

View File

@ -146,7 +146,7 @@ void System::SolveBySubstitution(void) {
}
bool System::Tol(double v) {
return (fabs(v) < 0.01);
return (fabs(v) < 0.0001);
}
int System::GaussJordan(void) {

View File

@ -496,7 +496,11 @@ void PaintGraphics(void)
SDWORD GetMilliseconds(void)
{
return (SDWORD)GetTickCount();
LARGE_INTEGER t, f;
QueryPerformanceCounter(&t);
QueryPerformanceFrequency(&f);
LONGLONG d = t.QuadPart/(f.QuadPart/1000);
return (SDWORD)d;
}
void InvalidateText(void)