Use a higher-res timer for GetMilliseconds(), and tweak some stuff.
[git-p4: depot-paths = "//depot/solvespace/": change = 1765]solver
parent
857395966a
commit
57db9bea34
|
@ -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]);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue