Author Topic: Fix Smooth polygons feature.  (Read 3233 times)

0 Members and 1 Guest are viewing this topic.

Offline Bistoufly

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 782
Fix Smooth polygons feature.
« on: May 13, 2011, 04:27:00 pm »
The smooth polygons feature is very handy.

Unfortunately it has a significant impact on the frame-rate.
On some maps it divides my fps by 3. Making them unplayable.

An other issue is that some edges are not drown at all.

Could you please have a look at this?

Also it would be very nice if there was an option to outline every polygons of the map. Not only the contour of the map as it does currently.

It would help to find polyboosts, icy surfaces and things like that.
It would also be a precious help for map makers testing their maps in-game.

Thank you

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Fix Smooth polygons feature.
« Reply #1 on: May 13, 2011, 05:03:36 pm »
Edges not being drawn at all - are you sure it's a bug? Does it happen on specific maps, or randomly on all maps? Because it might be that polygon edge graphic is just missing.

As for edges for every polygon (wireframe mode?) - even if this is added - it shouldn't be available in multiplayer. Only in single-player, for map testing purposes.

Offline Serial K!ller

  • Camper
  • ***
  • Posts: 408
    • Soldat Mods Archive
Re: Fix Smooth polygons feature.
« Reply #2 on: May 14, 2011, 03:03:42 am »
It already draws all the smooth lines but they are behind the polygons so you don't see them.
if you move all the textures from the textures folder (keep edges folder) it will draw map without texture so you can see the smooth lines (if texture has one).


a way to improve the impact on the fps could be if soldat detects smooth lines that are not visible (behind polygons) so it wouldn't draw them
because on maps with alot of polygons in one view it will drop the frame rate alot while most of the drawn lines aren't even seen.

Here's an example of such a map that drops my fps from 530 to 19.

with edges and no texture: http://img847.imageshack.us/i/screenshot11051403.png/

without edges: http://img850.imageshack.us/i/screenshot11051407.png/


« Last Edit: May 14, 2011, 03:34:25 am by Serial K!ller »

Offline Polifen

  • Soldier
  • **
  • Posts: 127
Re: Fix Smooth polygons feature.
« Reply #3 on: May 14, 2011, 03:36:40 am »
As for edges for every polygon (wireframe mode?) - even if this is added - it shouldn't be available in multiplayer. Only in single-player, for map testing purposes.

It could be an option for server. As far as I remember there was something like background changing in 1.5.1 and it was option in soldat.ini. Now half of good climb players has Show Polygon hack ( it's an option in quite known hack ), I've already talked to some people and probably we will have such a thing for 1.5.1 too, only problem is that we'll have to disable MSAC on climb servers.

Also, what's actually usefull in wireframe on CTF? It doesn't help at all there.

Offline steppenwo1f

  • Major(1)
  • Posts: 36
Re: Fix Smooth polygons feature.
« Reply #4 on: May 14, 2011, 08:37:23 am »
Here's an example of such a map that drops my fps from 530 to 19.

with edges and no texture: http://img847.imageshack.us/i/screenshot11051403.png/

without edges: http://img850.imageshack.us/i/screenshot11051407.png/

heey, its my old map, one of my first... i know, it lags much. I didn't know much about mapmaking in those days. Columns and arches are made from many many small polygons. Amount of them reaches almost map's limit.
« Last Edit: May 14, 2011, 08:38:56 am by steppenwo1f »

Offline Bistoufly

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 782
Re: Fix Smooth polygons feature.
« Reply #5 on: May 14, 2011, 09:04:18 am »
Now half of good climb players has Show Polygon hack ( it's an option in quite known hack ), I've already talked to some people and probably we will have such a thing for 1.5.1 too, only problem is that we'll have to disable MSAC on climb servers.

Wireframe for 1.5.1.? :D Please make this happen!
But why would MSAC need to be disabled?

Also quick question: does "Show Polygon hack" have an impact on fps? Or is it just the soldat smooth edge feature that is badly coded?


Offline Polifen

  • Soldier
  • **
  • Posts: 127
Re: Fix Smooth polygons feature.
« Reply #6 on: May 14, 2011, 10:05:43 am »
As I wrote before, I've talked to some guys and they said it's not a problem, I'll just have to remind them when 1.5.1 is out.
MSAC would need to be disabled, because it would be hack and I'm pretty sure that MSAC would detect it.
My FPS with Show Poly was same/simmilar to normal.

Offline Bistoufly

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 782
Re: Fix Smooth polygons feature.
« Reply #7 on: May 16, 2012, 10:56:11 pm »
Here's an example of such a map that drops my fps from 530 to 19.

with edges and no texture: http://img847.imageshack.us/i/screenshot11051403.png/

without edges: http://img850.imageshack.us/i/screenshot11051407.png/

Does someone know the name of the map and/or when it can be dowloaded?

Anyways, reported in mantis: http://bugs.soldat.pl/view.php?id=209
« Last Edit: May 17, 2012, 02:38:52 am by Bistoufly »

Offline tk

  • Soldier
  • **
  • Posts: 235
Re: Fix Smooth polygons feature.
« Reply #8 on: May 17, 2012, 01:52:34 am »
ls_chartres
Join a Last Stand server, and type "/vote chartres" command

176.241.243.15:23072
176.241.243.15:23074
176.241.243.15:23077

Offline Bistoufly

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 782
Re: Fix Smooth polygons feature.
« Reply #9 on: May 17, 2012, 02:38:06 am »
Thank you tk.

Note added.