Search

Search found 2347 matches

by jK
14 Apr 2015, 22:46
Forum: Lua Scripts
Topic: mapinfo math.random & math.randomseed
Replies: 5
Views: 1387

Re: mapinfo math.random & math.randomseed

No, the defs.lua stage (returning UnitDefs, WeaponDefs, etc.) has to be `static` - means it same results for same input, which are the ModOptions - cause the unitsync already loads that stage. So that the lobby can already show available units etc. and allows to disable some of them etc. So in the p...
by jK
14 Apr 2015, 22:36
Forum: Lua Scripts
Topic: Heightmap texture saving issue
Replies: 9
Views: 1812

Re: Heightmap texture saving issue

https://github.com/spring/spring/commit/71bf7fad2d5a825403a02baa5a931edf0999ca55 + dev_saveheightmap.lua: function widget:GetInfo() return { name = "HeightMap To BMP32", desc = "Saves current heightmap to heightmap.bmp", author = "jK", version = "0", date = &...
by jK
05 Apr 2015, 21:20
Forum: General Discussion
Topic: Path finding
Replies: 66
Views: 10364

Re: Path finding

Right. I was hoping I could control it dynamically since I don't need it triggering while I'm modifying the terrain, only after it's done. 1. for a map editor you normally have `fake` movedefs making pathupdate very fast 2. pause the game ;) (yes, you can still do synced changes while the game is p...
by jK
05 Apr 2015, 16:53
Forum: Lua Scripts
Topic: gl.Texture no cache
Replies: 7
Views: 1217

Re: gl.Texture no cache

@1: when you load a huge loadscreen texture in LuaIntro and later never need it again, then yes you should delete it in :Shutdown()

@2: you got the source
by jK
05 Apr 2015, 15:09
Forum: Lua Scripts
Topic: gl.Texture no cache
Replies: 7
Views: 1217

Re: gl.Texture no cache

with gl.DeleteTexture you can delete named textures (that's the name of them), too.
by jK
05 Apr 2015, 14:19
Forum: Lua Scripts
Topic: gl.Texture no cache
Replies: 7
Views: 1217

Re: gl.Texture no cache

use gl.DeleteTexture
by jK
29 Mar 2015, 05:46
Forum: Engine
Topic: Spring has a problem with L2 cache misses
Replies: 35
Views: 13500

Re: Spring has a problem with L2 cache misses

Update: here a graph of latest dev build, after some changes (also thank you pica for your patches) https://springrts.com/phpbb/download/file.php?id=9345 what changed: * moved all OpenAL calls to the sound thread * massive tweaks in ::TestNeighbors * tweaks in CGroundMoveType::HandleUnitCollisions *...
by jK
25 Mar 2015, 03:02
Forum: Feature Requests
Topic: New standard theme sucks?
Replies: 9
Views: 2066

New standard theme sucks?

Just a few reason why you might find it horrible: * font * color don't fit with the rest * gray & blue ... * stuff on the right * low contrast * empty space everywhere * annoying scrolling icons on "Active topics" page indicating that a thread is multi-page * tiny tiny small icon that ...
by jK
19 Mar 2015, 01:55
Forum: Lobby Clients & Server
Topic: flobby
Replies: 31
Views: 12163

Re: flobby

/var/tmp/portage/games-util/flobby-9999/work/flobby-9999/src/main.cpp:9:19: fatal error: FL/Fl.H: No such file or directory
#include <FL/Fl.H>
seems you use FLTK in src/main.cpp, but only include_dir it in src/gui/*
by jK
10 Mar 2015, 14:57
Forum: Map Creation
Topic: Minimap creation
Replies: 45
Views: 7955

Re: Minimap creation

Usage: Set minheight and maxheight to zero in mapinfo.lua (thanks Funkencool :wink:). Put the gadget in luarules/gadgets of your map and start a game. It makes the screenshot (saved to the usual spring screenshot dir), writes some cropping information into the infolog.txt (to make life easier) and ...
by jK
08 Mar 2015, 12:44
Forum: General Discussion
Topic: PhpBB 3.1
Replies: 130
Views: 24685

Re: PhpBB 3.1

by jK
08 Mar 2015, 12:40
Forum: Engine
Topic: I want to implement the us of astc texture compression
Replies: 3
Views: 1703

Re: I want to implement the us of astc texture compression

it's waste of time: 1. there are less open source (gpl-compatible) astc/etc compressors available 2. none desktop gpu implements astc nor etc2 in hw (causing a massive drop in fps and increase of vram usage) 3. the available etc2 compressors don't support ETC2_ALPHA_PASSTHROUGH, means no alpha avail...
by jK
06 Mar 2015, 12:06
Forum: Engine
Topic: Spring has a problem with L2 cache misses
Replies: 35
Views: 13500

Re: Spring has a problem with L2 cache misses

Good find, just replace int2 with type2<boost::uint16_t>, go through all compile errors - there are some cause "int2 foo = type2<boost::uint16_t>(0,0) + int2(1,1);" isn't defined. There are 64K PathNodes per PathNodeBuffer so saving 4bits frees 0.25MB something that should help L2. Also th...
by jK
03 Mar 2015, 08:32
Forum: Engine
Topic: Spring has a problem with L2 cache misses
Replies: 35
Views: 13500

Re: Spring has a problem with L2 cache misses

There's nothing new about that. See the above paper on procedure boundary elimination, also papers on superblocks (which gcc supports) and the like. I don't recommend bothering with that stuff though since it blows up your file size/compile times and the performance is very inconsistent at best. Al...
by jK
28 Feb 2015, 12:07
Forum: Engine
Topic: Spring has a problem with L2 cache misses
Replies: 35
Views: 13500

Re: Spring has a problem with L2 cache misses

@aeonios A lot of text for less real information ... @compilers Yes, some optimizations that help CPU ALU will kill L2. Mainly cause of the CPU/Mem gap often explained in L2 papers. Still since 10years CPUs don't become much faster anymore instead they increase the cores, so there is the chance tha...
by jK
28 Feb 2015, 10:55
Forum: Help & Bugs
Topic: Please confirm voidground failure
Replies: 6
Views: 1133

Re: Please confirm voidground failure

recheck your boolean understanding, it does what I said
and obv. it needs to check if ETC is supported, too (it's part of OES3)
by jK
28 Feb 2015, 08:12
Forum: Help & Bugs
Topic: Please confirm voidground failure
Replies: 6
Views: 1133

Re: Please confirm voidground failure

At least it doesn't report it does, cause spring checks for GL_EXT_texture_compression_s3tc and only when not available it recompress. Also the used etc1 compressor doesn't support an alpha channel, neither does many drivers support etc1/2 in hw. So it's a pure _fallback_ solution to not show a whit...
by jK
25 Feb 2015, 15:28
Forum: Lua Scripts
Topic: LUPS-manager
Replies: 3
Views: 895

Re: LUPS-manager

Gadget enviroment never had a lups_manager.lua
by jK
25 Feb 2015, 03:11
Forum: Lua Scripts
Topic: Get rid of default UI
Replies: 31
Views: 5598

Re: How do I get rid of default UI?

all you are missing is a callin GameSetup... or somehting

Go to advanced search